Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 2025-05-09

- Change the repository panel to show the number of jobs per workflow per repository.

### 2025-05-06

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/cos.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The "GitHub Self-Hosted Runner Metrics" metrics dashboard presents the following
regular expression on the `Repository` variable. The following metrics are displayed:
- Proportion charts: Share of jobs by completion status, job conclusion, application, repo policy check failure http codes and github events over time.
- Job duration observation
- Number of jobs per repository
- Number of jobs per workflow per repository

The "GitHub Self-Hosted Runner Metrics (Long-Term)" metrics dashboard displays the following rows:

Expand Down
7 changes: 4 additions & 3 deletions src/grafana_dashboards/metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@
"type": "loki",
"uid": "${lokids}"
},
"description": "Visualises the number of jobs per repository.",
"description": "Visualises the number of jobs per workflow per repository.",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -1931,7 +1931,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1972,7 +1973,7 @@
"uid": "${lokids}"
},
"editorMode": "code",
"expr": "sum by(repo)(count_over_time({filename=\"/var/log/github-runner-metrics.log\", juju_application=~\"$juju_application\", juju_model=~\"$juju_model\", juju_model_uuid=~\"$juju_model_uuid\", juju_unit=~\"$juju_unit\"} | json event=\"event\",flavor=\"flavor\" | event=\"runner_start\" | json repo=\"repo\" | flavor=~\"$flavor\" | repo=~\"$repository\"[$__range]))",
"expr": "sum by(repo,workflow)(count_over_time({filename=\"/var/log/github-runner-metrics.log\", juju_application=~\"$juju_application\", juju_model=~\"$juju_model\", juju_model_uuid=~\"$juju_model_uuid\", juju_unit=~\"$juju_unit\"} | json event=\"event\",flavor=\"flavor\" | event=\"runner_start\" | json repo=\"repo\",workflow=\"workflow\" | flavor=~\"$flavor\" | repo=~\"$repository\"[$__range]))",
"legendFormat": "",
"queryType": "instant",
"refId": "A"
Expand Down
Loading