mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-01 00:48:12 +08:00
10 lines
249 B
Python
10 lines
249 B
Python
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
|