66 lines
3.3 KiB
JSON
66 lines
3.3 KiB
JSON
{
|
|
"annotations": {"list": []},
|
|
"editable": true,
|
|
"graphTooltip": 1,
|
|
"panels": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {"defaults": {"thresholds": {"mode": "absolute", "steps": [{"color": "red", "value": null}, {"color": "green", "value": 1}]}, "unit": "short"}, "overrides": []},
|
|
"gridPos": {"h": 6, "w": 6, "x": 0, "y": 0},
|
|
"id": 1,
|
|
"options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
|
|
"targets": [{"expr": "max(up{job=\"jeannie-api\"})", "legendFormat": "API", "refId": "A"}],
|
|
"title": "API Target",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []},
|
|
"gridPos": {"h": 6, "w": 9, "x": 6, "y": 0},
|
|
"id": 2,
|
|
"options": {"legend": {"displayMode": "table", "placement": "bottom"}, "tooltip": {"mode": "multi"}},
|
|
"targets": [{"expr": "sum by (status) (rate(jeannie_http_requests_total{job=\"jeannie-api\"}[5m]))", "legendFormat": "{{status}}", "refId": "A"}],
|
|
"title": "Request Rate by Status",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {"defaults": {"unit": "s"}, "overrides": []},
|
|
"gridPos": {"h": 6, "w": 9, "x": 15, "y": 0},
|
|
"id": 3,
|
|
"options": {"legend": {"displayMode": "table", "placement": "bottom"}, "tooltip": {"mode": "multi"}},
|
|
"targets": [{"expr": "sum(rate(jeannie_http_request_duration_seconds_sum{job=\"jeannie-api\"}[5m])) / sum(rate(jeannie_http_request_duration_seconds_count{job=\"jeannie-api\"}[5m]))", "legendFormat": "average latency", "refId": "A"}],
|
|
"title": "Average Request Latency",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {"defaults": {"unit": "short"}, "overrides": []},
|
|
"gridPos": {"h": 6, "w": 8, "x": 0, "y": 6},
|
|
"id": 4,
|
|
"options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
|
|
"targets": [{"expr": "increase(jeannie_auth_failures_total{job=\"jeannie-api\"}[15m])", "legendFormat": "auth failures", "refId": "A"}],
|
|
"title": "Authentication Failures (15m)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []},
|
|
"gridPos": {"h": 6, "w": 8, "x": 8, "y": 6},
|
|
"id": 5,
|
|
"options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
|
|
"targets": [{"expr": "sum(rate(jeannie_http_requests_total{job=\"jeannie-api\",status=~\"5..\"}[5m]))", "legendFormat": "5xx", "refId": "A"}],
|
|
"title": "5xx Rate",
|
|
"type": "stat"
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 39,
|
|
"tags": ["homelab", "jeannie", "api"],
|
|
"templating": {"list": []},
|
|
"time": {"from": "now-6h", "to": "now"},
|
|
"title": "Jeannie API",
|
|
"uid": "homelab-jeannie-api",
|
|
"version": 1
|
|
}
|