1 # Generated from 'nodes' 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" $) "nodes" | 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 }}
32 "hideControls": false,
50 "datasource": "$datasource",
57 "alignAsTable": false,
72 "nullPointMode": "null",
87 "expr": "max(node_load1{job=\"node-exporter\", instance=\"$instance\"})",
88 "format": "time_series",
90 "legendFormat": "load 1m",
94 "expr": "max(node_load5{job=\"node-exporter\", instance=\"$instance\"})",
95 "format": "time_series",
97 "legendFormat": "load 5m",
101 "expr": "max(node_load15{job=\"node-exporter\", instance=\"$instance\"})",
102 "format": "time_series",
104 "legendFormat": "load 15m",
113 "title": "System load",
117 "value_type": "individual"
155 "datasource": "$datasource",
162 "alignAsTable": false,
177 "nullPointMode": "null",
189 "steppedLine": false,
192 "expr": "sum by (cpu) (irate(node_cpu_seconds_total{job=\"node-exporter\", mode!=\"idle\", instance=\"$instance\"}[5m]))",
193 "format": "time_series",
195 "legendFormat": "{{`{{cpu}}`}}",
204 "title": "Usage Per Core",
208 "value_type": "individual"
222 "format": "percentunit",
230 "format": "percentunit",
241 "repeatIteration": null,
244 "title": "Dashboard Row",
259 "datasource": "$datasource",
266 "alignAsTable": "true",
281 "nullPointMode": "null",
293 "steppedLine": false,
296 "expr": "max (sum by (cpu) (irate(node_cpu_seconds_total{job=\"node-exporter\", mode!=\"idle\", instance=\"$instance\"}[2m])) ) * 100\n",
297 "format": "time_series",
298 "intervalFactor": 10,
299 "legendFormat": "{{`{{ cpu }}`}}",
308 "title": "CPU Utilizaion",
312 "value_type": "individual"
344 "cacheTimeout": null,
345 "colorBackground": false,
348 "rgba(50, 172, 45, 0.97)",
349 "rgba(237, 129, 40, 0.89)",
350 "rgba(245, 54, 54, 0.9)"
352 "datasource": "$datasource",
358 "thresholdLabels": false,
359 "thresholdMarkers": true
372 "name": "value to text",
376 "name": "range to text",
380 "maxDataPoints": 100,
381 "nullPointMode": "connected",
384 "postfixFontSize": "50%",
386 "prefixFontSize": "50%",
396 "fillColor": "rgba(31, 118, 189, 0.18)",
398 "lineColor": "rgb(31, 120, 193)",
404 "expr": "avg(sum by (cpu) (irate(node_cpu_seconds_total{job=\"node-exporter\", mode!=\"idle\", instance=\"$instance\"}[2m]))) * 100\n",
405 "format": "time_series",
411 "thresholds": "80, 90",
412 "title": "CPU Usage",
413 "type": "singlestat",
414 "valueFontSize": "80%",
422 "valueName": "current"
426 "repeatIteration": null,
429 "title": "Dashboard Row",
444 "datasource": "$datasource",
451 "alignAsTable": false,
466 "nullPointMode": "null",
478 "steppedLine": false,
481 "expr": "max(\n node_memory_MemTotal_bytes{job=\"node-exporter\", instance=\"$instance\"}\n - node_memory_MemFree_bytes{job=\"node-exporter\", instance=\"$instance\"}\n - node_memory_Buffers_bytes{job=\"node-exporter\", instance=\"$instance\"}\n - node_memory_Cached_bytes{job=\"node-exporter\", instance=\"$instance\"}\n)\n",
482 "format": "time_series",
484 "legendFormat": "memory used",
488 "expr": "max(node_memory_Buffers_bytes{job=\"node-exporter\", instance=\"$instance\"})",
489 "format": "time_series",
491 "legendFormat": "memory buffers",
495 "expr": "max(node_memory_Cached_bytes{job=\"node-exporter\", instance=\"$instance\"})",
496 "format": "time_series",
498 "legendFormat": "memory cached",
502 "expr": "max(node_memory_MemFree_bytes{job=\"node-exporter\", instance=\"$instance\"})",
503 "format": "time_series",
505 "legendFormat": "memory free",
514 "title": "Memory Usage",
518 "value_type": "individual"
550 "cacheTimeout": null,
551 "colorBackground": false,
554 "rgba(50, 172, 45, 0.97)",
555 "rgba(237, 129, 40, 0.89)",
556 "rgba(245, 54, 54, 0.9)"
558 "datasource": "$datasource",
564 "thresholdLabels": false,
565 "thresholdMarkers": true
578 "name": "value to text",
582 "name": "range to text",
586 "maxDataPoints": 100,
587 "nullPointMode": "connected",
590 "postfixFontSize": "50%",
592 "prefixFontSize": "50%",
602 "fillColor": "rgba(31, 118, 189, 0.18)",
604 "lineColor": "rgb(31, 120, 193)",
610 "expr": "max(\n (\n (\n node_memory_MemTotal_bytes{job=\"node-exporter\", instance=\"$instance\"}\n - node_memory_MemFree_bytes{job=\"node-exporter\", instance=\"$instance\"}\n - node_memory_Buffers_bytes{job=\"node-exporter\", instance=\"$instance\"}\n - node_memory_Cached_bytes{job=\"node-exporter\", instance=\"$instance\"}\n )\n / node_memory_MemTotal_bytes{job=\"node-exporter\", instance=\"$instance\"}\n ) * 100)\n",
611 "format": "time_series",
617 "thresholds": "80, 90",
618 "title": "Memory Usage",
619 "type": "singlestat",
620 "valueFontSize": "80%",
628 "valueName": "current"
632 "repeatIteration": null,
635 "title": "Dashboard Row",
650 "datasource": "$datasource",
657 "alignAsTable": false,
672 "nullPointMode": "null",
691 "steppedLine": false,
694 "expr": "max(rate(node_disk_read_bytes_total{job=\"node-exporter\", instance=\"$instance\"}[2m]))",
695 "format": "time_series",
697 "legendFormat": "read",
701 "expr": "max(rate(node_disk_written_bytes_total{job=\"node-exporter\", instance=\"$instance\"}[2m]))",
702 "format": "time_series",
704 "legendFormat": "written",
708 "expr": "max(rate(node_disk_io_time_seconds_total{job=\"node-exporter\", instance=\"$instance\"}[2m]))",
709 "format": "time_series",
711 "legendFormat": "io time",
724 "value_type": "individual"
762 "datasource": "$datasource",
769 "alignAsTable": false,
784 "nullPointMode": "null",
796 "steppedLine": false,
799 "expr": "node:node_filesystem_usage:\n",
800 "format": "time_series",
802 "legendFormat": "{{`{{device}}`}}",
811 "title": "Disk Space Usage",
815 "value_type": "individual"
829 "format": "percentunit",
837 "format": "percentunit",
848 "repeatIteration": null,
851 "title": "Dashboard Row",
866 "datasource": "$datasource",
873 "alignAsTable": false,
888 "nullPointMode": "null",
900 "steppedLine": false,
903 "expr": "max(rate(node_network_receive_bytes_total{job=\"node-exporter\", instance=\"$instance\", device!\u007e\"lo\"}[5m]))",
904 "format": "time_series",
906 "legendFormat": "{{`{{device}}`}}",
915 "title": "Network Received",
919 "value_type": "individual"
957 "datasource": "$datasource",
964 "alignAsTable": false,
979 "nullPointMode": "null",
991 "steppedLine": false,
994 "expr": "max(rate(node_network_transmit_bytes_total{job=\"node-exporter\", instance=\"$instance\", device!\u007e\"lo\"}[5m]))",
995 "format": "time_series",
997 "legendFormat": "{{`{{device}}`}}",
1006 "title": "Network Transmitted",
1010 "value_type": "individual"
1043 "repeatIteration": null,
1044 "repeatRowId": null,
1046 "title": "Dashboard Row",
1061 "datasource": "$datasource",
1068 "alignAsTable": false,
1083 "nullPointMode": "null",
1084 "percentage": false,
1089 "seriesOverrides": [
1095 "steppedLine": false,
1098 "expr": "max(\n node_filesystem_files{job=\"node-exporter\", instance=\"$instance\"}\n - node_filesystem_files_free{job=\"node-exporter\", instance=\"$instance\"}\n)\n",
1099 "format": "time_series",
1100 "intervalFactor": 2,
1101 "legendFormat": "inodes used",
1105 "expr": "max(node_filesystem_files_free{job=\"node-exporter\", instance=\"$instance\"})",
1106 "format": "time_series",
1107 "intervalFactor": 2,
1108 "legendFormat": "inodes free",
1117 "title": "Inodes Usage",
1121 "value_type": "individual"
1153 "cacheTimeout": null,
1154 "colorBackground": false,
1155 "colorValue": false,
1157 "rgba(50, 172, 45, 0.97)",
1158 "rgba(237, 129, 40, 0.89)",
1159 "rgba(245, 54, 54, 0.9)"
1161 "datasource": "$datasource",
1162 "format": "percent",
1167 "thresholdLabels": false,
1168 "thresholdMarkers": true
1181 "name": "value to text",
1185 "name": "range to text",
1189 "maxDataPoints": 100,
1190 "nullPointMode": "connected",
1193 "postfixFontSize": "50%",
1195 "prefixFontSize": "50%",
1205 "fillColor": "rgba(31, 118, 189, 0.18)",
1207 "lineColor": "rgb(31, 120, 193)",
1213 "expr": "max(\n (\n (\n node_filesystem_files{job=\"node-exporter\", instance=\"$instance\"}\n - node_filesystem_files_free{job=\"node-exporter\", instance=\"$instance\"}\n )\n / node_filesystem_files{job=\"node-exporter\", instance=\"$instance\"}\n ) * 100)\n",
1214 "format": "time_series",
1215 "intervalFactor": 2,
1220 "thresholds": "80, 90",
1221 "title": "Inodes Usage",
1222 "type": "singlestat",
1223 "valueFontSize": "80%",
1231 "valueName": "current"
1235 "repeatIteration": null,
1236 "repeatRowId": null,
1238 "title": "Dashboard Row",
1243 "schemaVersion": 14,
1252 "text": "Prometheus",
1253 "value": "Prometheus"
1257 "name": "datasource",
1261 "query": "prometheus",
1264 "type": "datasource"
1271 "datasource": "$datasource",
1273 "includeAll": false,
1280 "query": "label_values(node_boot_time_seconds{job=\"node-exporter\"}, instance)",
1284 "tagValuesQuery": "",
1299 "refresh_intervals": [
1324 "title": "Kubernetes / Nodes",
1325 "uid": "fa49a4706d07a042595b664c87fb33ea",