trails/infrastructure/grafana/dashboards/planner.json
Ullrich Schäfer 2a11397ca9
Add deploy annotation query to all Grafana dashboards
Provisioned dashboards now display deploy markers (cyan vertical
lines) by querying built-in Grafana annotations tagged "deploy".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 20:47:56 +02:00

51 lines
1.6 KiB
JSON

{
"dashboard": {
"title": "Planner",
"uid": "trails-planner",
"annotations": {
"list": [
{
"name": "Deploys",
"enable": true,
"datasource": { "type": "grafana", "uid": "-- Grafana --" },
"iconColor": "rgba(0, 211, 255, 1)",
"tags": ["deploy"]
}
]
},
"timezone": "browser",
"refresh": "30s",
"panels": [
{
"title": "Active Sessions",
"type": "stat",
"gridPos": { "h": 6, "w": 6, "x": 0, "y": 0 },
"targets": [{ "expr": "planner_active_sessions", "legendFormat": "Sessions" }]
},
{
"title": "Connected Clients",
"type": "stat",
"gridPos": { "h": 6, "w": 6, "x": 6, "y": 0 },
"targets": [{ "expr": "planner_connected_clients", "legendFormat": "Clients" }]
},
{
"title": "BRouter Latency",
"type": "timeseries",
"gridPos": { "h": 6, "w": 12, "x": 12, "y": 0 },
"targets": [
{ "expr": "histogram_quantile(0.50, rate(brouter_request_duration_seconds_bucket[5m]))", "legendFormat": "p50" },
{ "expr": "histogram_quantile(0.95, rate(brouter_request_duration_seconds_bucket[5m]))", "legendFormat": "p95" }
],
"fieldConfig": { "defaults": { "unit": "s" } }
},
{
"title": "Request Rate by Route",
"type": "timeseries",
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 6 },
"targets": [
{ "expr": "sum(rate(http_request_duration_seconds_count{job=\"planner\"}[5m])) by (route)", "legendFormat": "{{route}}" }
]
}
]
}
}