Moved prometheus monitoring into flask blueprint

This commit is contained in:
Bob Belnap
2022-09-05 15:04:35 -04:00
committed by Alok Saldanha
parent d5008893f7
commit 0f79e1a010
16 changed files with 339 additions and 293 deletions
+9
View File
@@ -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