Invalid JSON:Unexpected token '#', "# ========"... is not valid JSON
| # ============================================================================= | |
| # Grafana Dashboard — Platform Overview | |
| # ============================================================================= | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: platform-overview-dashboard | |
| namespace: monitoring | |
| labels: | |
| grafana_dashboard: "1" | |
| data: | |
| platform-overview.json: | | |
| { | |
| "dashboard": { | |
| "title": "Platform Overview", | |
| "tags": ["platform", "overview"], | |
| "panels": [ | |
| { | |
| "title": "Request Rate (req/s)", | |
| "type": "timeseries", | |
| "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, | |
| "targets": [{ | |
| "expr": "sum(rate(http_requests_total[5m])) by (service)", | |
| "legendFormat": "{{service}}" | |
| }] | |
| }, | |
| { | |
| "title": "Error Rate (%)", | |
| "type": "timeseries", | |
| "gridPos": {"h": 8, "w": 12, "x": 12, "y": 0}, | |
| "targets": [{ | |
| "expr": "sum(rate(http_requests_total{code=~\"5..\"}[5m])) by (service) / sum(rate(http_requests_total[5m])) by (service) * 100", | |
| "legendFormat": "{{service}}" | |
| }] | |
| }, | |
| { | |
| "title": "P95 Latency", | |
| "type": "timeseries", | |
| "gridPos": {"h": 8, "w": 12, "x": 0, "y": 8}, | |
| "targets": [{ | |
| "expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le, service))", | |
| "legendFormat": "{{service}}" | |
| }] | |
| }, | |
| { | |
| "title": "Pod Status", | |
| "type": "stat", | |
| "gridPos": {"h": 8, "w": 6, "x": 12, "y": 8}, | |
| "targets": [{ | |
| "expr": "sum(kube_pod_status_phase) by (phase)", | |
| "legendFormat": "{{phase}}" | |
| }] | |
| }, | |
| { | |
| "title": "CPU Usage by Namespace", | |
| "type": "timeseries", | |
| "gridPos": {"h": 8, "w": 6, "x": 18, "y": 8}, | |
| "targets": [{ | |
| "expr": "sum(rate(container_cpu_usage_seconds_total[5m])) by (namespace)", | |
| "legendFormat": "{{namespace}}" | |
| }] | |
| }, | |
| { | |
| "title": "Security Alerts", | |
| "type": "alertlist", | |
| "gridPos": {"h": 8, "w": 12, "x": 0, "y": 16}, | |
| "options": { | |
| "show": "current" | |
| }, | |
| "targets": [{ | |
| "expr": "ALERTS{team=\"security\"}" | |
| }] | |
| } | |
| ] | |
| } | |
| } | |