From 9848121f850aaf51df4058199c3519f47d200c4c Mon Sep 17 00:00:00 2001 From: Nick Pillitteri Date: Fri, 14 Feb 2025 15:38:14 -0500 Subject: [PATCH] Update helm tests Signed-off-by: Nick Pillitteri --- .../metamonitoring/grafana-dashboards.yaml | 322 ++++++++++++++++-- 1 file changed, 302 insertions(+), 20 deletions(-) diff --git a/operations/helm/tests/metamonitoring-values-generated/mimir-distributed/templates/metamonitoring/grafana-dashboards.yaml b/operations/helm/tests/metamonitoring-values-generated/mimir-distributed/templates/metamonitoring/grafana-dashboards.yaml index 002a90d76ac..fefb7b3483f 100644 --- a/operations/helm/tests/metamonitoring-values-generated/mimir-distributed/templates/metamonitoring/grafana-dashboards.yaml +++ b/operations/helm/tests/metamonitoring-values-generated/mimir-distributed/templates/metamonitoring/grafana-dashboards.yaml @@ -31419,6 +31419,288 @@ data: "title": "Reads (ingesters)", "titleSize": "h6" }, + { + "collapse": false, + "height": "250px", + "panels": [ + { + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "line", + "fillOpacity": 0, + "lineWidth": 1, + "pointSize": 5, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + } + }, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "request" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FFC000", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "fill": "dash" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "limit" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E02F44", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "fill": "dash" + } + } + ] + } + ] + }, + "id": 11, + "links": [ ], + "options": { + "legend": { + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "span": 4, + "targets": [ + { + "expr": "sum by(pod) (rate(container_cpu_usage_seconds_total{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\"}[$__rate_interval]))", + "format": "time_series", + "legendFormat": "{{pod}}", + "legendLink": null + }, + { + "expr": "min(container_spec_cpu_quota{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\"} / container_spec_cpu_period{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\"})", + "format": "time_series", + "legendFormat": "limit", + "legendLink": null + }, + { + "expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\",resource=\"cpu\"})", + "format": "time_series", + "legendFormat": "request", + "legendLink": null + } + ], + "title": "CPU", + "type": "timeseries" + }, + { + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "line", + "fillOpacity": 0, + "lineWidth": 1, + "pointSize": 5, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + } + }, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "request" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FFC000", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "fill": "dash" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "limit" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E02F44", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineStyle", + "value": { + "fill": "dash" + } + } + ] + } + ] + }, + "id": 12, + "links": [ ], + "options": { + "legend": { + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "span": 4, + "targets": [ + { + "expr": "max by(pod) (container_memory_working_set_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\"})", + "format": "time_series", + "legendFormat": "{{pod}}", + "legendLink": null + }, + { + "expr": "min(container_spec_memory_limit_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\"} > 0)", + "format": "time_series", + "legendFormat": "limit", + "legendLink": null + }, + { + "expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\",resource=\"memory\"})", + "format": "time_series", + "legendFormat": "request", + "legendLink": null + } + ], + "title": "Memory (workingset)", + "type": "timeseries" + }, + { + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "line", + "fillOpacity": 0, + "lineWidth": 1, + "pointSize": 5, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + } + }, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "bytes" + }, + "overrides": [ ] + }, + "id": 13, + "links": [ ], + "options": { + "legend": { + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "span": 4, + "targets": [ + { + "expr": "sum by(pod) (go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"ruler\"})", + "format": "time_series", + "legendFormat": "{{pod}}", + "legendLink": null + } + ], + "title": "Memory (go heap inuse)", + "type": "timeseries" + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": true, + "title": "Ruler resources", + "titleSize": "h6" + }, { "collapse": false, "height": "250px", @@ -31584,7 +31866,7 @@ data: } ] }, - "id": 11, + "id": 14, "links": [ ], "options": { "legend": { @@ -31632,7 +31914,7 @@ data: }, "overrides": [ ] }, - "id": 12, + "id": 15, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -31723,7 +32005,7 @@ data: }, "overrides": [ ] }, - "id": 13, + "id": 16, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -31802,7 +32084,7 @@ data: }, "overrides": [ ] }, - "id": 14, + "id": 17, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -31899,7 +32181,7 @@ data: } ] }, - "id": 15, + "id": 18, "links": [ ], "options": { "legend": { @@ -31960,7 +32242,7 @@ data: }, "overrides": [ ] }, - "id": 16, + "id": 19, "links": [ ], "options": { "legend": { @@ -32009,7 +32291,7 @@ data: }, "overrides": [ ] }, - "id": 17, + "id": 20, "links": [ ], "options": { "legend": { @@ -32058,7 +32340,7 @@ data: }, "overrides": [ ] }, - "id": 18, + "id": 21, "links": [ ], "options": { "legend": { @@ -32118,7 +32400,7 @@ data: }, "overrides": [ ] }, - "id": 19, + "id": 22, "links": [ ], "options": { "legend": { @@ -32166,7 +32448,7 @@ data: }, "overrides": [ ] }, - "id": 20, + "id": 23, "links": [ ], "options": { "legend": { @@ -32214,7 +32496,7 @@ data: }, "overrides": [ ] }, - "id": 21, + "id": 24, "links": [ ], "options": { "legend": { @@ -32274,7 +32556,7 @@ data: }, "overrides": [ ] }, - "id": 22, + "id": 25, "links": [ ], "options": { "legend": { @@ -32334,7 +32616,7 @@ data: }, "overrides": [ ] }, - "id": 23, + "id": 26, "links": [ ], "options": { "legend": { @@ -32367,7 +32649,7 @@ data: "unit": "percentunit" } }, - "id": 24, + "id": 27, "links": [ ], "options": { "legend": { @@ -32415,7 +32697,7 @@ data: }, "overrides": [ ] }, - "id": 25, + "id": 28, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -32494,7 +32776,7 @@ data: }, "overrides": [ ] }, - "id": 26, + "id": 29, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -32585,7 +32867,7 @@ data: }, "overrides": [ ] }, - "id": 27, + "id": 30, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -32664,7 +32946,7 @@ data: }, "overrides": [ ] }, - "id": 28, + "id": 31, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -32743,7 +33025,7 @@ data: }, "overrides": [ ] }, - "id": 29, + "id": 32, "links": [ ], "nullPointMode": "null as zero", "options": { @@ -32822,7 +33104,7 @@ data: }, "overrides": [ ] }, - "id": 30, + "id": 33, "links": [ ], "nullPointMode": "null as zero", "options": {