events: fix authentik_system_tasks metric status label (#6252)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
b0bce60e5e
commit
5ca65003f1
|
@ -92,7 +92,7 @@ class TaskInfo:
|
||||||
GAUGE_TASKS.labels(
|
GAUGE_TASKS.labels(
|
||||||
task_name=self.task_name.split(":")[0],
|
task_name=self.task_name.split(":")[0],
|
||||||
task_uid=self.result.uid or "",
|
task_uid=self.result.uid or "",
|
||||||
status=self.result.status.value,
|
status=self.result.status.name.lower(),
|
||||||
).set(duration)
|
).set(duration)
|
||||||
|
|
||||||
def save(self, timeout_hours=6):
|
def save(self, timeout_hours=6):
|
||||||
|
|
Reference in New Issue