Skip to content

Commit cef6dbb

Browse files
[CI] Add Logging for Workflow Jobs
This patch adds some logging information for individual workflow jobs inside the metrics container. This is mainly intended for debugging why we seem to be missing metrics from some workflows within Grafana.
1 parent 3c51894 commit cef6dbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.ci/metrics/metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ def get_per_workflow_metrics(
193193
# in nanoseconds.
194194
created_at_ns = int(created_at.timestamp()) * 10**9
195195

196+
logging.info(
197+
f"Adding a job metric for job {workflow_job.id} in workflow {workflow_run.id}"
198+
)
199+
196200
workflow_metrics.append(
197201
JobMetrics(
198202
workflow_run.name + "-" + workflow_job.name,

0 commit comments

Comments
 (0)