Metadata-Version: 2.4
Name: cubicweb-prometheus
Version: 0.6.0
Summary: Exporting prometheus metrics
Home-page: https://forge.extranet.logilab.fr/cubicweb/cubes/prometheus
Author: LOGILAB S.A. (Paris, FRANCE)
Author-email: contact@logilab.fr
License: LGPL
Classifier: Environment :: Web Environment
Classifier: Framework :: CubicWeb
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: JavaScript
Requires-Python: >=3.9.2
Description-Content-Type: text/markdown
Requires-Dist: cubicweb<6.0.0,>=4.5.2
Requires-Dist: prometheus-client<0.17.0,>=0.16.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

Summary
-------

Exporting prometheus metrics.

This cube provides a pyramid tween that will, when active, collect the metrics
configured in the settings pyramid.ini and expose them on route `/metrics`.

Configuration
-------------

Include the metrics you want in pyramid.ini:

```
prometheus.pyramid.http_requests = True
prometheus.pyramid.current_requests = True
prometheus.pyramid.slow_routes = True
prometheus.pyramid.time_routes = True
prometheus.pyramid.count_routes = True

prometheus.cubicweb.sql.time = Histogram
prometheus.cubicweb.rql.time = Histogram
...
```

