16 lines
1.1 KiB
JSON
16 lines
1.1 KiB
JSON
{
|
|
"title": "CI",
|
|
"uid": "ci",
|
|
"tags": ["homelab", "stack"],
|
|
"timezone": "browser",
|
|
"schemaVersion": 39,
|
|
"time": {"from": "now-6h", "to": "now"},
|
|
"refresh": "30s",
|
|
"panels": [
|
|
{"id": 1, "title": "Active CI jobs (24h)", "type": "stat", "gridPos": {"x": 0, "y": 0, "w": 4, "h": 4}, "datasource": {"uid": "loki"}, "targets": [{"expr": "count_over_time({container=\"act-runner\", ci_event=\"job started\"}[24h])"}]},
|
|
{"id": 2, "title": "Job outcomes (24h)", "type": "timeseries", "gridPos": {"x": 4, "y": 0, "w": 20, "h": 8}, "datasource": {"uid": "loki"}, "targets": [{"expr": "sum by (ci_event) (count_over_time({container=\"act-runner\", ci_event=~\"job (started|finished|failed)\"}[24h]))"}]},
|
|
{"id": 3, "title": "Gitea push events", "type": "timeseries", "gridPos": {"x": 0, "y": 8, "w": 12, "h": 8}, "datasource": {"uid": "loki"}, "targets": [{"expr": "sum(rate({container=\"git\", gitea_event=\"push\"}[5m]))"}]},
|
|
{"id": 4, "title": "Webhook events", "type": "timeseries", "gridPos": {"x": 12, "y": 8, "w": 12, "h": 8}, "datasource": {"uid": "loki"}, "targets": [{"expr": "sum(rate({container=\"git\", gitea_event=\"webhook\"}[5m]))"}]}
|
|
]
|
|
}
|