Skip to content

Commit

Permalink
feat: rename metrics to include namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed Jan 30, 2023
1 parent 2b63c36 commit de0629b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit de0629b

Please sign in to comment.