From de0629be924d41fe203f93078584fa4f9895c04a Mon Sep 17 00:00:00 2001 From: Zygimantass Date: Mon, 30 Jan 2023 09:29:54 -0500 Subject: [PATCH] feat: rename metrics to include namespace --- chain_watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain_watcher.py b/chain_watcher.py index 24b2523..6a23140 100644 --- a/chain_watcher.py +++ b/chain_watcher.py @@ -39,8 +39,8 @@ def __init__( def monitor(self): self.db_conn = sqlite3.connect(self.config["db_path"]) - self.last_checked_time = Gauge(f'last_checked', 'Last time an upgrade was fetched', ["chain_id"]) - self.error_counter = Counter(f'errors', 'Errors encountered during an upgrade', ["chain_id", "error"]) + self.last_checked_time = Gauge(f'governor_last_checked', 'Last time an upgrade was fetched', ["chain_id"]) + self.error_counter = Counter(f'governor_errors', 'Errors encountered during an upgrade', ["chain_id", "error"]) logging.basicConfig( level=logging.DEBUG, format="%(asctime)s %(name)s %(levelname)s:%(message)s"