Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
metrics: Fix up the prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmv committed Apr 11, 2021
1 parent 904a702 commit ebb459e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaccinate/api/location_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ebb459e

Please sign in to comment.