Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion docs/monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The dashboard needs Grafana 13.2 or newer and the container's log in Loki with a

1. At a glance holds four count tiles, for open pull requests, open issues, code-scanning alerts and failed CI runs in the selected time range.
2. Open work holds linked tables of the open pull requests, issues and code-scanning alerts from the latest scan.
3. Recent CI failures holds a linked table of failed, timed-out and startup-failed runs in the selected time range, and a bar gauge of those failures per repository. Successful runs are left out.
3. Recent CI failures holds a linked table of failed, timed-out and startup-failed runs in the selected time range. Successful runs are left out.
4. Scout health holds two tiles. **Scout status** turns Stalled when no scan completed in the last hour. **Scan integrity** turns red when a scan logged an error, so a zero above it was not checked.

Two controls shape what you see:
Expand Down
93 changes: 0 additions & 93 deletions grafana-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -1831,86 +1831,6 @@
}
}
}
},
"panel-50": {
"kind": "Panel",
"spec": {
"id": 50,
"title": "Failures by repository",
"description": "Failed, timed-out and never-started Actions runs per repository, reported in the selected time range, each run counted once. Every bar is red from 1 failed run, and a repository with many is worth a look for a flaky or broken workflow. After a restart github-scout reports the last `LOOKBACK_HOURS` again, so a range can include a run that started before it. An empty panel means CI was green everywhere.",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "loki",
"version": "v0",
"datasource": {
"name": "${datasource}"
},
"spec": {
"expr": "count by (repo) (count by (repo, run_id) (count_over_time({container=\"github-scout\"} |= `workflow run` | json msg=\"msg\", repo=\"repo\", run_id=\"run_id\", conclusion=\"conclusion\" | msg=`workflow run` | conclusion=~`failure|timed_out|startup_failure` [$__range])))",
"legendFormat": "{{repo}}",
"queryType": "instant"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "bargauge",
"version": "",
"spec": {
"options": {
"displayMode": "basic",
"orientation": "horizontal",
"showUnfilled": true,
"valueMode": "color",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"fieldConfig": {
"defaults": {
"unit": "short",
"decimals": 0,
"noValue": "No failed runs in this range",
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": null,
"color": "green"
},
{
"value": 1,
"color": "red"
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
}
}
}
}
}
},
"layout": {
Expand Down Expand Up @@ -2046,19 +1966,6 @@
"name": "panel-30"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 10,
"width": 24,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-50"
}
}
}
]
}
Expand Down
Loading