From 32369a2399ad91a2105288cbad269a1291b9dcaf Mon Sep 17 00:00:00 2001 From: Gerard Segarra Date: Tue, 30 Apr 2024 10:03:16 +0200 Subject: [PATCH] Send job id --- src/jobs.py | 1 + src/metrics.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/jobs.py b/src/jobs.py index 758b67a..9fe3e56 100644 --- a/src/jobs.py +++ b/src/jobs.py @@ -47,6 +47,7 @@ def send_queued_metric(self): metrics.send_queued_job( seconds_in_queue=self.seconds_in_queue, job_name=self.github_job.job_name, + job_id=self.github_job.job_id, repository=self.github_job.repository, runner=self.github_job.runner_name, run_id=self.github_job.run_id, diff --git a/src/metrics.py b/src/metrics.py index ed9cef3..8cbf43f 100644 --- a/src/metrics.py +++ b/src/metrics.py @@ -11,6 +11,7 @@ def send_queued_job( seconds_in_queue: int, job_name: str, + job_id, repository: str, runner: str, run_id: str, @@ -21,6 +22,7 @@ def send_queued_job( seconds_in_queue, tags=[ f"job:{job_name}", + f"job_id:job-{job_id}", f"repository:{repository}", f"runner_name:{runner}", f"run_id:run-{run_id}", # "run-" added to group by run-id in DD