From d8ae4b3cd6d4cf0f9ab835533d97e5ac83d668ae Mon Sep 17 00:00:00 2001 From: MrMissx Date: Fri, 5 Jul 2024 15:57:37 +0700 Subject: [PATCH] fix: add labelnames to UnhandledError counter in metrics.py --- anjani/core/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anjani/core/metrics.py b/anjani/core/metrics.py index d2f37269f..265233530 100644 --- a/anjani/core/metrics.py +++ b/anjani/core/metrics.py @@ -16,7 +16,7 @@ labelnames=["type"], ) CommandCount = Counter("anjani_command_stats", "Number of coomand", labelnames=["name"]) -UnhandledError = Counter("anjani_unhandled_error", "Number of unhandled error") +UnhandledError = Counter("anjani_unhandled_error", "Number of unhandled error", labelnames=["type"]) EventLatencySecond = Gauge( "anjani_event_latency",