{"repo":"rycus86/prometheus_flask_exporter","free":true,"listed":false,"github":"https://github.com/rycus86/prometheus_flask_exporter","clone":"git clone https://github.com/rycus86/prometheus_flask_exporter.git","description":"Prometheus exporter for Flask applications","language":"Python","stars":685,"topics":["flask","prometheus-exporter","metrics"],"license":"MIT","category":"analytics","readme_excerpt":"Prometheus Flask exporter This library provides HTTP request metrics to export into Prometheus. It can also track method invocations using convenient functions. Installing Install using PIP: or paste it into requirements.txt: and then install dependencies from requirements.txt file as usual: Usage Default metrics The following metrics are exported by default (unless the export defaults is set to False ). - flask http request duration seconds (Histogram) Labels: method , path and status . Flask HTTP request duration in seconds for all Flask requests. - flask http request total (Counter) Labels: method and status . Total number of HTTP requests for all Flask requests. - flask http request exceptions total (Counter) Labels: method and status . Total number of uncaught exceptions when serving Flask requests. - flask exporter info (Gauge) Information about the Prometheus Flask exporter itself (e.g. version ). The prefix for the default metrics can be controlled by the defaults prefix parameter. If you don't want to use any prefix, pass the prometheus flask exporter.NO PREFIX value in. The buckets on the default request latency histogram can be changed by the buckets parameter, and if using a summary for them is more appropriate for your use case, then use the default latency as histogram=False parameter. To register your own default metrics that will track all registered Flask view functions, use the register default function. Note: register your default metrics after all routes h","default_branch":null,"files":null,"tree":[],"storefront":"/r/rycus86","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rycus86/prometheus_flask_exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}