Skip to main content

HTTP metrics for a tornado application

Project description

https://travis-ci.org/globocom/tornado-prometheus.svg?branch=master

HTTP metrics for a tornado application

# Installing

Usage

from tornado.web import Application, RequestHandler
from tornado.ioloop import IOLoop

from tornado_prometheus import PrometheusMixIn, MetricsHandler

class SampleApp(PrometheusMixIn, Application):
    pass

if __name__ == '__main__':
  app =  SampleApp([
      (r"/metrics", MetricsHandler),
  ])

  app.listen(8888)
  IOLoop.current().start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tornado-prometheus-0.1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

tornado_prometheus-0.1.0-py2-none-any.whl (3.5 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page