{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "id": null, "links": [], "panels": [ { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ {"color": "green", "value": null}, {"color": "yellow", "value": 70}, {"color": "red", "value": 90} ] }, "unit": "percent" } }, "gridPos": {"h": 8, "w": 6, "x": 0, "y": 0}, "id": 1, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "8.0.0", "targets": [ { "expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)", "refId": "A" } ], "title": "CPU Usage", "type": "gauge" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": {"mode": "palette-classic"}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ {"color": "green", "value": null}, {"color": "yellow", "value": 70}, {"color": "red", "value": 90} ] }, "unit": "percent" } }, "gridPos": {"h": 8, "w": 6, "x": 6, "y": 0}, "id": 2, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false } }, "targets": [ { "expr": "(1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100", "refId": "A" } ], "title": "Memory Usage", "type": "gauge" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": {"mode": "palette-classic"}, "custom": { "axisLabel": "", "axisPlacement": "auto", "drawStyle": "line", "fillOpacity": 10, "lineInterpolation": "linear", "lineWidth": 1, "showPoints": "never" }, "unit": "reqps" } }, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 0}, "id": 3, "options": { "legend": {"displayMode": "list", "placement": "bottom"}, "tooltip": {"mode": "single"} }, "targets": [ { "expr": "sum(rate(http_requests_total[5m])) by (status)", "legendFormat": "{{status}}", "refId": "A" } ], "title": "Request Rate by Status", "type": "timeseries" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": {"mode": "palette-classic"}, "custom": { "drawStyle": "line", "fillOpacity": 10, "lineWidth": 1 }, "unit": "s" } }, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 8}, "id": 4, "targets": [ { "expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "P95", "refId": "A" }, { "expr": "histogram_quantile(0.50, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "P50", "refId": "B" } ], "title": "Request Latency", "type": "timeseries" }, { "datasource": "Prometheus", "fieldConfig": { "defaults": { "color": {"mode": "palette-classic"}, "custom": { "drawStyle": "line", "fillOpacity": 10 }, "unit": "percent" } }, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 8}, "id": 5, "targets": [ { "expr": "sum(rate(http_requests_total{status=~\"5..\"}[5m])) / sum(rate(http_requests_total[5m])) * 100", "legendFormat": "Error Rate", "refId": "A" } ], "title": "Error Rate", "type": "timeseries" } ], "schemaVersion": 30, "style": "dark", "tags": ["template", "prometheus"], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Application Dashboard Template", "version": 1 }