Skip to content

Commit 44d2967

Browse files
committed
add logging when dropping stale metrics
1 parent 4c31335 commit 44d2967

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
@@ -179,6 +179,10 @@ def github_get_metrics(
179179
datetime.datetime.now(datetime.timezone.utc) - completed_at
180180
).total_seconds() / 60
181181
if metric_age_mn > GRAFANA_METRIC_MAX_AGE_MN:
182+
logging.info(
183+
f"Job {job.id} from workflow {task.id} dropped due"
184+
+ f" to staleness: {metric_age_mn}mn old."
185+
)
182186
continue
183187

184188
logging.info(f"Adding a job metric for job {job.id} in workflow {task.id}")

0 commit comments

Comments
 (0)