Producing Prometheus stats fro DASH (plotly) apps.
pip install git+https://github.com/gitHBDX/dash-prometheus.gitthen in your DASH app
# dash_prometheus has to be imported before dash
import dash_prometheus
...
app = dash.Dash(...)
dash_prometheus.add_middleware(app)The Prometheus endpoint is exposed on the same host/port on /metrics but can be configured when adding the middleware.
Currently produces the following metrics:
| Type | Name | Description | Labels |
|---|---|---|---|
| Counter | dash_callback_calls |
Number of calls to a Dash callback | module, callback |
| Histogram | dash_callback_duration |
Duration of Dash callback | module, callback |
Developed @

