Skip to content

Commit

Permalink
Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsegarra committed Apr 26, 2024
1 parent 9c0be0f commit ac39d24
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,19 @@ def monitor_queued_jobs():

for run in details:
app.logger.info(f"DETAIL {run}")
statsd.histogram(
'midokura.github_runners.jobs.seconds_in_queue.histogram',
run["seconds_in_queue"],
tags=[
tags = [
"environment:dev",
f"job:{run['job_name']}",
f"repository:{run['repository']}",
f"runner_name:{run['runner_name']}",
f"run_id:{run['run_id']}",
f"public:{run['is_public']}"
]
app.logger.info(f"tags {tags}")
statsd.histogram(
'midokura.github_runners.jobs.seconds_in_queue.histogram',
run["seconds_in_queue"],
tags=tags
)

app.logger.info(f"Jobs details {details}")
Expand Down

0 comments on commit ac39d24

Please sign in to comment.