1 # Generated from 'k8s-cluster-rsrc-use' from https://raw.githubusercontent.com/coreos/prometheus-operator/master/contrib/kube-prometheus/manifests/grafana-dashboardDefinitions.yaml
2 {{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
6 name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-cluster-rsrc-use" | trunc 63 | trimSuffix "-" }}
8 {{- if $.Values.grafana.sidecar.dashboards.label }}
9 {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
11 app: {{ template "prometheus-operator.name" $ }}-grafana
12 {{ include "prometheus-operator.labels" $ | indent 4 }}
14 k8s-cluster-rsrc-use.json: |-
24 "hideControls": false,
41 "datasource": "$datasource",
58 "nullPointMode": "null as zero",
72 "expr": "node:node_cpu_utilisation:avg1m * node:node_num_cpu:sum / scalar(sum(node:node_num_cpu:sum))",
73 "format": "time_series",
75 "legendFormat": "{{`{{node}}`}}",
76 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
85 "title": "CPU Utilisation",
89 "value_type": "individual"
103 "format": "percentunit",
127 "datasource": "$datasource",
144 "nullPointMode": "null as zero",
155 "steppedLine": false,
158 "expr": "node:node_cpu_saturation_load1: / scalar(sum(min(kube_pod_info) by (node)))",
159 "format": "time_series",
161 "legendFormat": "{{`{{node}}`}}",
162 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
171 "title": "CPU Saturation (Load1)",
175 "value_type": "individual"
189 "format": "percentunit",
208 "repeatIteration": null,
225 "datasource": "$datasource",
242 "nullPointMode": "null as zero",
253 "steppedLine": false,
256 "expr": "node:node_memory_utilisation:ratio",
257 "format": "time_series",
259 "legendFormat": "{{`{{node}}`}}",
260 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
269 "title": "Memory Utilisation",
273 "value_type": "individual"
287 "format": "percentunit",
311 "datasource": "$datasource",
328 "nullPointMode": "null as zero",
339 "steppedLine": false,
342 "expr": "node:node_memory_swap_io_bytes:sum_rate",
343 "format": "time_series",
345 "legendFormat": "{{`{{node}}`}}",
346 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
355 "title": "Memory Saturation (Swap I/O)",
359 "value_type": "individual"
392 "repeatIteration": null,
409 "datasource": "$datasource",
426 "nullPointMode": "null as zero",
437 "steppedLine": false,
440 "expr": "node:node_disk_utilisation:avg_irate / scalar(:kube_pod_info_node_count:)",
441 "format": "time_series",
443 "legendFormat": "{{`{{node}}`}}",
444 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
453 "title": "Disk IO Utilisation",
457 "value_type": "individual"
471 "format": "percentunit",
495 "datasource": "$datasource",
512 "nullPointMode": "null as zero",
523 "steppedLine": false,
526 "expr": "node:node_disk_saturation:avg_irate / scalar(:kube_pod_info_node_count:)",
527 "format": "time_series",
529 "legendFormat": "{{`{{node}}`}}",
530 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
539 "title": "Disk IO Saturation",
543 "value_type": "individual"
557 "format": "percentunit",
576 "repeatIteration": null,
593 "datasource": "$datasource",
610 "nullPointMode": "null as zero",
621 "steppedLine": false,
624 "expr": "node:node_net_utilisation:sum_irate",
625 "format": "time_series",
627 "legendFormat": "{{`{{node}}`}}",
628 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
637 "title": "Net Utilisation (Transmitted)",
641 "value_type": "individual"
679 "datasource": "$datasource",
696 "nullPointMode": "null as zero",
707 "steppedLine": false,
710 "expr": "node:node_net_saturation:sum_irate",
711 "format": "time_series",
713 "legendFormat": "{{`{{node}}`}}",
714 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
723 "title": "Net Saturation (Dropped)",
727 "value_type": "individual"
760 "repeatIteration": null,
777 "datasource": "$datasource",
794 "nullPointMode": "null as zero",
805 "steppedLine": false,
808 "expr": "sum(max(node_filesystem_size_bytes{fstype=\u007e\"ext[234]|btrfs|xfs|zfs\"} - node_filesystem_avail_bytes{fstype=\u007e\"ext[234]|btrfs|xfs|zfs\"}) by (device,pod,namespace)) by (pod,namespace)\n/ scalar(sum(max(node_filesystem_size_bytes{fstype=\u007e\"ext[234]|btrfs|xfs|zfs\"}) by (device,pod,namespace)))\n* on (namespace, pod) group_left (node) node_namespace_pod:kube_pod_info:\n",
809 "format": "time_series",
811 "legendFormat": "{{`{{node}}`}}",
812 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
821 "title": "Disk Capacity",
825 "value_type": "individual"
839 "format": "percentunit",
858 "repeatIteration": null,
874 "text": "Prometheus",
875 "value": "Prometheus"
879 "name": "datasource",
883 "query": "prometheus",
895 "refresh_intervals": [
920 "title": "K8s / USE Method / Cluster",
921 "uid": "a6e7d1362e1ddbb79db21d5bb40d7137",