1 # Generated from 'k8s-cluster-rsrc-use' from https://raw.githubusercontent.com/coreos/prometheus-operator/master/contrib/kube-prometheus/manifests/grafana-dashboardDefinitions.yaml
2 # Do not change in-place! In order to change this file first read following link:
3 # https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
4 {{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
8 name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-cluster-rsrc-use" | trunc 63 | trimSuffix "-" }}
10 {{- if $.Values.grafana.sidecar.dashboards.label }}
11 {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
13 app: {{ template "prometheus-operator.name" $ }}-grafana
14 {{ include "prometheus-operator.labels" $ | indent 4 }}
16 k8s-cluster-rsrc-use.json: |-
26 "hideControls": false,
43 "datasource": "$datasource",
60 "nullPointMode": "null as zero",
74 "expr": "node:cluster_cpu_utilisation:ratio",
75 "format": "time_series",
77 "legendFormat": "{{`{{node}}`}}",
78 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
87 "title": "CPU Utilisation",
91 "value_type": "individual"
105 "format": "percentunit",
129 "datasource": "$datasource",
146 "nullPointMode": "null as zero",
157 "steppedLine": false,
160 "expr": "node:node_cpu_saturation_load1: / scalar(sum(min(kube_pod_info) by (node)))",
161 "format": "time_series",
163 "legendFormat": "{{`{{node}}`}}",
164 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
173 "title": "CPU Saturation (Load1)",
177 "value_type": "individual"
191 "format": "percentunit",
210 "repeatIteration": null,
227 "datasource": "$datasource",
244 "nullPointMode": "null as zero",
255 "steppedLine": false,
258 "expr": "node:cluster_memory_utilisation:ratio",
259 "format": "time_series",
261 "legendFormat": "{{`{{node}}`}}",
262 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
271 "title": "Memory Utilisation",
275 "value_type": "individual"
289 "format": "percentunit",
313 "datasource": "$datasource",
330 "nullPointMode": "null as zero",
341 "steppedLine": false,
344 "expr": "node:node_memory_swap_io_bytes:sum_rate",
345 "format": "time_series",
347 "legendFormat": "{{`{{node}}`}}",
348 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
357 "title": "Memory Saturation (Swap I/O)",
361 "value_type": "individual"
394 "repeatIteration": null,
411 "datasource": "$datasource",
428 "nullPointMode": "null as zero",
439 "steppedLine": false,
442 "expr": "node:node_disk_utilisation:avg_irate / scalar(:kube_pod_info_node_count:)",
443 "format": "time_series",
445 "legendFormat": "{{`{{node}}`}}",
446 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
455 "title": "Disk IO Utilisation",
459 "value_type": "individual"
473 "format": "percentunit",
497 "datasource": "$datasource",
514 "nullPointMode": "null as zero",
525 "steppedLine": false,
528 "expr": "node:node_disk_saturation:avg_irate / scalar(:kube_pod_info_node_count:)",
529 "format": "time_series",
531 "legendFormat": "{{`{{node}}`}}",
532 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
541 "title": "Disk IO Saturation",
545 "value_type": "individual"
559 "format": "percentunit",
578 "repeatIteration": null,
595 "datasource": "$datasource",
612 "nullPointMode": "null as zero",
623 "steppedLine": false,
626 "expr": "node:node_net_utilisation:sum_irate",
627 "format": "time_series",
629 "legendFormat": "{{`{{node}}`}}",
630 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
639 "title": "Net Utilisation (Transmitted)",
643 "value_type": "individual"
681 "datasource": "$datasource",
698 "nullPointMode": "null as zero",
709 "steppedLine": false,
712 "expr": "node:node_net_saturation:sum_irate",
713 "format": "time_series",
715 "legendFormat": "{{`{{node}}`}}",
716 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
725 "title": "Net Saturation (Dropped)",
729 "value_type": "individual"
762 "repeatIteration": null,
779 "datasource": "$datasource",
796 "nullPointMode": "null as zero",
807 "steppedLine": false,
810 "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",
811 "format": "time_series",
813 "legendFormat": "{{`{{node}}`}}",
814 "legendLink": "/d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use",
823 "title": "Disk Capacity",
827 "value_type": "individual"
841 "format": "percentunit",
860 "repeatIteration": null,
876 "text": "Prometheus",
877 "value": "Prometheus"
881 "name": "datasource",
885 "query": "prometheus",
897 "refresh_intervals": [
922 "title": "Kubernetes / USE Method / Cluster",
923 "uid": "a6e7d1362e1ddbb79db21d5bb40d7137",