From 5ca65003f1be3945cb70e4e284124a5128c9fc15 Mon Sep 17 00:00:00 2001 From: Jens L Date: Thu, 13 Jul 2023 16:24:13 +0200 Subject: [PATCH] events: fix authentik_system_tasks metric status label (#6252) Signed-off-by: Jens Langhammer --- authentik/events/monitored_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/events/monitored_tasks.py b/authentik/events/monitored_tasks.py index 3781c30d5..772e6ccf9 100644 --- a/authentik/events/monitored_tasks.py +++ b/authentik/events/monitored_tasks.py @@ -92,7 +92,7 @@ class TaskInfo: GAUGE_TASKS.labels( task_name=self.task_name.split(":")[0], task_uid=self.result.uid or "", - status=self.result.status.value, + status=self.result.status.name.lower(), ).set(duration) def save(self, timeout_hours=6):