events: don't include task uid in task metric (#5595)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-05-12 20:03:52 +02:00 committed by GitHub
parent ec78e56fbd
commit a032fd529b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -87,9 +87,9 @@ class TaskInfo:
except TypeError: except TypeError:
duration = 0 duration = 0
GAUGE_TASKS.labels( GAUGE_TASKS.labels(
task_name=self.task_name, task_name=self.task_name.split(":")[0],
task_uid=self.result.uid or "", task_uid=self.result.uid or "",
status=self.result.status, status=self.result.status.value,
).set(duration) ).set(duration)
def save(self, timeout_hours=6): def save(self, timeout_hours=6):