From a032fd529babcd2151617eabd0f44287b00cf575 Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 12 May 2023 20:03:52 +0200 Subject: [PATCH] events: don't include task uid in task metric (#5595) Signed-off-by: Jens Langhammer --- authentik/events/monitored_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/events/monitored_tasks.py b/authentik/events/monitored_tasks.py index 52ad00983..36641506b 100644 --- a/authentik/events/monitored_tasks.py +++ b/authentik/events/monitored_tasks.py @@ -87,9 +87,9 @@ class TaskInfo: except TypeError: duration = 0 GAUGE_TASKS.labels( - task_name=self.task_name, + task_name=self.task_name.split(":")[0], task_uid=self.result.uid or "", - status=self.result.status, + status=self.result.status.value, ).set(duration) def save(self, timeout_hours=6):