Skip to content

gitHBDX/dash-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dash-prometheus

prometheus logo

plotly logo

Producing Prometheus stats fro DASH (plotly) apps.

Installation

pip install git+https://github.com/gitHBDX/dash-prometheus.git

then 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.

Metrics

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 @

Hummingbid Diagnostics logo

About

Producing Prometheus stats fro DASH (plotly) apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages