From ebb459e4486b2191959f86634b748f2419603a5b Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Sun, 11 Apr 2021 00:16:38 -0700 Subject: [PATCH] metrics: Fix up the prefix. --- vaccinate/api/location_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vaccinate/api/location_metrics.py b/vaccinate/api/location_metrics.py index 1fe98fb..98bad3e 100644 --- a/vaccinate/api/location_metrics.py +++ b/vaccinate/api/location_metrics.py @@ -29,8 +29,8 @@ class LocationMetricsReport: def __init__(self) -> None: # We want to make sure we never export the real metric names # except in production, Just In Case - prefix = os.environ.get("DEPLOY", "unknown") - if prefix == "production": + prefix = os.environ.get("DEPLOY", "unknown") + "_" + if prefix == "production_": prefix = "" self.registry = CollectorRegistry()