Commit d39bec8d authored by Remi Rampin's avatar Remi Rampin

Prometheus: Change version from Info to Gauge

parent ce09e760
......@@ -20,7 +20,8 @@ from .web import make_app
logger = logging.getLogger(__name__)
PROM_VERSION = prometheus_client.Info('version', "Application version")
PROM_VERSION = prometheus_client.Gauge('version', "Application version",
def prepare_db(database):
......@@ -266,7 +267,7 @@ def main():
else:"Running from Git repository, using version=%s",
version){'version': version})
if 'SENTRY_DSN' in config:
import sentry_sdk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment