mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-10 15:40:55 +08:00
Moved prometheus monitoring into flask blueprint
This commit is contained in:
committed by
Alok Saldanha
parent
d5008893f7
commit
0f79e1a010
@@ -0,0 +1,9 @@
|
||||
from prometheus_flask_exporter import PrometheusMetrics
|
||||
|
||||
from cellxgene_gateway import __version__
|
||||
|
||||
|
||||
def add_metrics(app):
|
||||
metrics = PrometheusMetrics(app)
|
||||
metrics.info("app_info", "Application info", version=__version__)
|
||||
return metrics
|
||||
Reference in New Issue
Block a user