Created
January 7, 2025 15:12
-
-
Save cmwylie19/5c064c8ff5a7e83754aeca5b11ecef1d to your computer and use it in GitHub Desktop.
ConfigMap to see how Pepr is doing from a network prospective but includes other namespaces too
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| data: | |
| enhanced-metrics.json: | | |
| { | |
| "title": "Enhanced Network Metrics Dashboard", | |
| "editable": true, | |
| "refresh": "10s", | |
| "time": { "from": "now-1h", "to": "now" }, | |
| "templating": { | |
| "list": [ | |
| { | |
| "name": "datasource", | |
| "label": "Data Source", | |
| "type": "datasource", | |
| "query": "prometheus", | |
| "current": { "text": "Prometheus", "value": "Prometheus" }, | |
| "includeAll": false | |
| }, | |
| { | |
| "name": "namespace", | |
| "label": "Namespace", | |
| "type": "query", | |
| "datasource": { "type": "prometheus", "uid": "${datasource}" }, | |
| "query": "label_values(istio_requests_total, source_workload_namespace)", | |
| "refresh": 1, | |
| "current": { "text": "default", "value": "default" }, | |
| "includeAll": true | |
| } | |
| ] | |
| }, | |
| "panels": [ | |
| { | |
| "type": "timeseries", | |
| "title": "P95 Latency by Destination Namespace", | |
| "datasource": { "type": "prometheus", "uid": "${datasource}" }, | |
| "targets": [ | |
| { | |
| "expr": "histogram_quantile(0.95, sum(rate(istio_request_duration_milliseconds_bucket{source_workload_namespace=\"$namespace\"}[5m])) by (le, destination_workload_namespace))", | |
| "legendFormat": "{{destination_workload_namespace}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "fieldConfig": { | |
| "defaults": { "unit": "ms" }, | |
| "overrides": [] | |
| }, | |
| "options": { | |
| "tooltip": { "mode": "single" }, | |
| "legend": { | |
| "displayMode": "table", | |
| "placement": "right", | |
| "calcs": ["lastNotNull"] | |
| } | |
| }, | |
| "gridPos": { "h": 8, "w": 24, "x": 0, "y": 0 } | |
| }, | |
| { | |
| "type": "timeseries", | |
| "title": "Average Latency by Destination Namespace", | |
| "datasource": { "type": "prometheus", "uid": "${datasource}" }, | |
| "targets": [ | |
| { | |
| "expr": "sum(rate(istio_request_duration_milliseconds_sum{source_workload_namespace=\"$namespace\"}[5m])) by (destination_service_namespace) / sum(rate(istio_request_duration_milliseconds_count{source_workload_namespace=\"$namespace\"}[5m])) by (destination_service_namespace)", | |
| "legendFormat": "{{destination_service_namespace}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "fieldConfig": { | |
| "defaults": { "unit": "ms" }, | |
| "overrides": [] | |
| }, | |
| "options": { | |
| "tooltip": { "mode": "single" }, | |
| "legend": { | |
| "displayMode": "table", | |
| "placement": "right", | |
| "calcs": ["lastNotNull"] | |
| } | |
| }, | |
| "gridPos": { "h": 8, "w": 24, "x": 0, "y": 8 } | |
| }, | |
| { | |
| "type": "timeseries", | |
| "title": "Total Requests by Destination Namespace", | |
| "datasource": { "type": "prometheus", "uid": "${datasource}" }, | |
| "targets": [ | |
| { | |
| "expr": "sum(rate(istio_requests_total{source_workload_namespace=\"$namespace\"}[5m])) by (destination_workload_namespace)", | |
| "legendFormat": "{{destination_workload_namespace}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "fieldConfig": { | |
| "defaults": { "unit": "requests/sec" }, | |
| "overrides": [] | |
| }, | |
| "options": { | |
| "tooltip": { "mode": "single" }, | |
| "legend": { | |
| "displayMode": "table", | |
| "placement": "right", | |
| "calcs": ["lastNotNull"] | |
| } | |
| }, | |
| "gridPos": { "h": 8, "w": 24, "x": 0, "y": 8 } | |
| }, | |
| { | |
| "type": "timeseries", | |
| "title": "Request Duration (Average) by Destination Namespace", | |
| "datasource": { "type": "prometheus", "uid": "${datasource}" }, | |
| "targets": [ | |
| { | |
| "expr": "sum(rate(istio_request_duration_milliseconds_sum{source_workload_namespace=\"$namespace\"}[5m])) by (destination_workload_namespace) / sum(rate(istio_request_duration_milliseconds_count{source_workload_namespace=\"$namespace\"}[5m])) by (destination_workload_namespace)", | |
| "legendFormat": "{{destination_workload_namespace}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "fieldConfig": { | |
| "defaults": { "unit": "ms" }, | |
| "overrides": [] | |
| }, | |
| "options": { | |
| "tooltip": { "mode": "single" }, | |
| "legend": { | |
| "displayMode": "table", | |
| "placement": "right", | |
| "calcs": ["lastNotNull"] | |
| } | |
| }, | |
| "gridPos": { "h": 8, "w": 24, "x": 0, "y": 16 } | |
| }, | |
| { | |
| "type": "timeseries", | |
| "title": "Response Bytes by Destination Namespace", | |
| "datasource": { "type": "prometheus", "uid": "${datasource}" }, | |
| "targets": [ | |
| { | |
| "expr": "sum(rate(istio_request_bytes_sum{source_workload_namespace=\"$namespace\"}[5m])) by (destination_workload_namespace) / sum(rate(istio_request_bytes_count{source_workload_namespace=\"$namespace\"}[5m])) by (destination_workload_namespace)", | |
| "legendFormat": "{{destination_workload_namespace}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "fieldConfig": { | |
| "defaults": { "unit": "bytes" }, | |
| "overrides": [] | |
| }, | |
| "options": { | |
| "tooltip": { "mode": "single" }, | |
| "legend": { | |
| "displayMode": "table", | |
| "placement": "right", | |
| "calcs": ["lastNotNull"] | |
| } | |
| }, | |
| "gridPos": { "h": 8, "w": 24, "x": 0, "y": 24 } | |
| } | |
| ] | |
| } | |
| kind: ConfigMap | |
| metadata: | |
| creationTimestamp: null | |
| name: enhanced-metrics | |
| namespace: grafana | |
| labels: | |
| grafana_dashboard: "1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment