Metadata-Version: 2.1
Name: aiohttp-prometheus-client
Version: 0.1.1
Summary: HTTP metrics for a aiohttp application
Home-page: https://github.com/RailYakup/aiohttp-prometheus.git
Author: Globo.com, Rail Yakup
Author-email: backstage@corp.globo.com, Rail1996@mail.ru
License: MIT
Download-URL: https://github.com/RailYakup/aiohttp-prometheus/archive/0.1.1.tar.gz
Description: AIOHTTP prometheus
        ==================
        
        .. image:: https://travis-ci.org/globocom/aiohttp-prometheus.svg?branch=master
            :target: https://travis-ci.org/globocom/aiohttp-prometheus
        
        HTTP metrics for a AIOHTTP application
        
        Installing
        ----------
        
        .. code-block:: bash
        
           pip install aiohttp-prometheus-client
        
        
        Usage
        -----
        
        .. code-block:: python
        
            from aiohttp import web
            from aiohttp_prometheus import metrics_middleware, MetricsView
        
            app = web.Application()
            app.middlewares.append(metrics_middleware)
        
            app.router.add_route('GET', '/metrics', MetricsView),
        
            web.run_app(app)
        
        
        Example output for metric route
        -------------------------------
        
        .. code-block::
        
           # HELP aiohttp_http_requests_total Asyncio total Request Count
           # TYPE aiohttp_http_requests_total counter
           aiohttp_http_requests_total{handler="MetricsView",method="GET",status="2xx"} 7.0
        
           # HELP aiohttp_http_request_duration_seconds Request latency
           # TYPE aiohttp_http_request_duration_seconds histogram
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.01",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.05",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.1",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.5",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.75",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="1.0",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="2.5",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="5.0",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="7.5",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="10.0",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="15.0",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="20.0",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="30.0",method="GET"} 7.0
           aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="+Inf",method="GET"} 7.0
        
Keywords: prometheus,aiohttp
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Provides-Extra: tests
