Skip to content

Commit

Permalink
dashboards: add k8s resource requests to CPU and memory panels (grafa…
Browse files Browse the repository at this point in the history
…na#2346)

This lets administrators see at a glance if requests are too low, which
risks overloading nodes, or too high which wastes provisioning.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
  • Loading branch information
bboreham authored Jul 8, 2022
1 parent a8709f3 commit 6a3197c
Show file tree
Hide file tree
Showing 7 changed files with 407 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

* [CHANGE] Dashboards: "Slow Queries" dashboard no longer works with versions older than Grafana 9.0. #2223
* [ENHANCEMENT] Dashboards: added missed rule evaluations to the "Evaluations per second" panel in the "Mimir / Ruler" dashboard. #2314
* [ENHANCEMENT] Dashboards: add k8s resource requests to CPU and memory panels. #2346
* [BUGFIX] Dashboards: fixed unit of latency panels in the "Mimir / Ruler" dashboard. #2312
* [BUGFIX] Dashboards: fixed "Intervals per query" panel in the "Mimir / Queries" dashboard. #2308
* [BUGFIX] Dashboards: Make "Slow Queries" dashboard works with Grafana 9.0. #2223
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "request",
"color": "#FFC000",
"fill": 0
},
{
"alias": "limit",
"color": "#E02F44",
Expand Down Expand Up @@ -88,6 +93,15 @@
"legendFormat": "limit",
"legendLink": null,
"step": 10
},
{
"expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"alertmanager\",resource=\"cpu\"})",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
"legendFormat": "request",
"legendLink": null,
"step": 10
}
],
"thresholds": [ ],
Expand Down Expand Up @@ -150,6 +164,11 @@
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "request",
"color": "#FFC000",
"fill": 0
},
{
"alias": "limit",
"color": "#E02F44",
Expand Down Expand Up @@ -178,6 +197,15 @@
"legendFormat": "limit",
"legendLink": null,
"step": 10
},
{
"expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"alertmanager\",resource=\"memory\"})",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
"legendFormat": "request",
"legendLink": null,
"step": 10
}
],
"thresholds": [ ],
Expand Down Expand Up @@ -327,6 +355,11 @@
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "request",
"color": "#FFC000",
"fill": 0
},
{
"alias": "limit",
"color": "#E02F44",
Expand Down Expand Up @@ -355,6 +388,15 @@
"legendFormat": "limit",
"legendLink": null,
"step": 10
},
{
"expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"alertmanager-im\",resource=\"cpu\"})",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
"legendFormat": "request",
"legendLink": null,
"step": 10
}
],
"thresholds": [ ],
Expand Down Expand Up @@ -417,6 +459,11 @@
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "request",
"color": "#FFC000",
"fill": 0
},
{
"alias": "limit",
"color": "#E02F44",
Expand Down Expand Up @@ -445,6 +492,15 @@
"legendFormat": "limit",
"legendLink": null,
"step": 10
},
{
"expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"alertmanager-im\",resource=\"memory\"})",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
"legendFormat": "request",
"legendLink": null,
"step": 10
}
],
"thresholds": [ ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "request",
"color": "#FFC000",
"fill": 0
},
{
"alias": "limit",
"color": "#E02F44",
Expand Down Expand Up @@ -88,6 +93,15 @@
"legendFormat": "limit",
"legendLink": null,
"step": 10
},
{
"expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"compactor\",resource=\"cpu\"})",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
"legendFormat": "request",
"legendLink": null,
"step": 10
}
],
"thresholds": [ ],
Expand Down Expand Up @@ -150,6 +164,11 @@
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "request",
"color": "#FFC000",
"fill": 0
},
{
"alias": "limit",
"color": "#E02F44",
Expand Down Expand Up @@ -178,6 +197,15 @@
"legendFormat": "limit",
"legendLink": null,
"step": 10
},
{
"expr": "min(kube_pod_container_resource_requests{cluster=~\"$cluster\", namespace=~\"$namespace\",container=~\"compactor\",resource=\"memory\"})",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
"legendFormat": "request",
"legendLink": null,
"step": 10
}
],
"thresholds": [ ],
Expand Down
Loading

0 comments on commit 6a3197c

Please sign in to comment.