1 # Generated from 'statefulset' 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" $) "statefulset" | 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,
45 "colorBackground": false,
49 "rgba(237, 129, 40, 0.89)",
52 "datasource": "$datasource",
58 "thresholdLabels": false,
59 "thresholdMarkers": true
72 "name": "value to text",
76 "name": "range to text",
81 "nullPointMode": "connected",
84 "postfixFontSize": "50%",
86 "prefixFontSize": "50%",
96 "fillColor": "rgba(31, 118, 189, 0.18)",
97 "lineColor": "rgb(31, 120, 193)",
103 "expr": "sum(rate(container_cpu_usage_seconds_total{job=\"kubelet\", namespace=\"$namespace\", pod_name=\u007e\"$statefulset.*\"}[3m]))",
104 "format": "time_series",
112 "type": "singlestat",
113 "valueFontSize": "80%",
121 "valueName": "current"
124 "cacheTimeout": null,
125 "colorBackground": false,
129 "rgba(237, 129, 40, 0.89)",
132 "datasource": "$datasource",
138 "thresholdLabels": false,
139 "thresholdMarkers": true
152 "name": "value to text",
156 "name": "range to text",
160 "maxDataPoints": 100,
161 "nullPointMode": "connected",
164 "postfixFontSize": "50%",
166 "prefixFontSize": "50%",
176 "fillColor": "rgba(31, 118, 189, 0.18)",
177 "lineColor": "rgb(31, 120, 193)",
183 "expr": "sum(container_memory_usage_bytes{job=\"kubelet\", namespace=\"$namespace\", pod_name=\u007e\"$statefulset.*\"}) / 1024^3",
184 "format": "time_series",
192 "type": "singlestat",
193 "valueFontSize": "80%",
201 "valueName": "current"
204 "cacheTimeout": null,
205 "colorBackground": false,
209 "rgba(237, 129, 40, 0.89)",
212 "datasource": "$datasource",
218 "thresholdLabels": false,
219 "thresholdMarkers": true
232 "name": "value to text",
236 "name": "range to text",
240 "maxDataPoints": 100,
241 "nullPointMode": "connected",
244 "postfixFontSize": "50%",
246 "prefixFontSize": "50%",
256 "fillColor": "rgba(31, 118, 189, 0.18)",
257 "lineColor": "rgb(31, 120, 193)",
263 "expr": "sum(rate(container_network_transmit_bytes_total{job=\"kubelet\", namespace=\"$namespace\", pod_name=\u007e\"$statefulset.*\"}[3m])) + sum(rate(container_network_receive_bytes_total{namespace=\"$namespace\",pod_name=\u007e\"$statefulset.*\"}[3m]))",
264 "format": "time_series",
272 "type": "singlestat",
273 "valueFontSize": "80%",
281 "valueName": "current"
285 "repeatIteration": null,
288 "title": "Dashboard Row",
298 "cacheTimeout": null,
299 "colorBackground": false,
303 "rgba(237, 129, 40, 0.89)",
306 "datasource": "$datasource",
312 "thresholdLabels": false,
313 "thresholdMarkers": true
326 "name": "value to text",
330 "name": "range to text",
334 "maxDataPoints": 100,
335 "nullPointMode": "connected",
338 "postfixFontSize": "50%",
340 "prefixFontSize": "50%",
350 "fillColor": "rgba(31, 118, 189, 0.18)",
352 "lineColor": "rgb(31, 120, 193)",
358 "expr": "max(kube_statefulset_replicas{job=\"kube-state-metrics\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
359 "format": "time_series",
366 "title": "Desired Replicas",
367 "type": "singlestat",
368 "valueFontSize": "80%",
376 "valueName": "current"
379 "cacheTimeout": null,
380 "colorBackground": false,
384 "rgba(237, 129, 40, 0.89)",
387 "datasource": "$datasource",
393 "thresholdLabels": false,
394 "thresholdMarkers": true
407 "name": "value to text",
411 "name": "range to text",
415 "maxDataPoints": 100,
416 "nullPointMode": "connected",
419 "postfixFontSize": "50%",
421 "prefixFontSize": "50%",
431 "fillColor": "rgba(31, 118, 189, 0.18)",
433 "lineColor": "rgb(31, 120, 193)",
439 "expr": "min(kube_statefulset_status_replicas_current{job=\"kube-state-metrics\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
440 "format": "time_series",
447 "title": "Replicas of current version",
448 "type": "singlestat",
449 "valueFontSize": "80%",
457 "valueName": "current"
460 "cacheTimeout": null,
461 "colorBackground": false,
465 "rgba(237, 129, 40, 0.89)",
468 "datasource": "$datasource",
474 "thresholdLabels": false,
475 "thresholdMarkers": true
488 "name": "value to text",
492 "name": "range to text",
496 "maxDataPoints": 100,
497 "nullPointMode": "connected",
500 "postfixFontSize": "50%",
502 "prefixFontSize": "50%",
512 "fillColor": "rgba(31, 118, 189, 0.18)",
514 "lineColor": "rgb(31, 120, 193)",
520 "expr": "max(kube_statefulset_status_observed_generation{job=\"kube-state-metrics\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
521 "format": "time_series",
528 "title": "Observed Generation",
529 "type": "singlestat",
530 "valueFontSize": "80%",
538 "valueName": "current"
541 "cacheTimeout": null,
542 "colorBackground": false,
546 "rgba(237, 129, 40, 0.89)",
549 "datasource": "$datasource",
555 "thresholdLabels": false,
556 "thresholdMarkers": true
569 "name": "value to text",
573 "name": "range to text",
577 "maxDataPoints": 100,
578 "nullPointMode": "connected",
581 "postfixFontSize": "50%",
583 "prefixFontSize": "50%",
593 "fillColor": "rgba(31, 118, 189, 0.18)",
595 "lineColor": "rgb(31, 120, 193)",
601 "expr": "max(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", statefulset=\"$statefulset\", namespace=\"$namespace\"}) without (instance, pod)",
602 "format": "time_series",
609 "title": "Metadata Generation",
610 "type": "singlestat",
611 "valueFontSize": "80%",
619 "valueName": "current"
623 "repeatIteration": null,
626 "title": "Dashboard Row",
641 "datasource": "$datasource",
648 "alignAsTable": false,
663 "nullPointMode": "null",
674 "steppedLine": false,
677 "expr": "max(kube_statefulset_replicas{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
678 "format": "time_series",
680 "legendFormat": "replicas specified",
684 "expr": "max(kube_statefulset_status_replicas{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
685 "format": "time_series",
687 "legendFormat": "replicas created",
691 "expr": "min(kube_statefulset_status_replicas_ready{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
692 "format": "time_series",
694 "legendFormat": "ready",
698 "expr": "min(kube_statefulset_status_replicas_current{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
699 "format": "time_series",
701 "legendFormat": "replicas of current version",
705 "expr": "min(kube_statefulset_status_replicas_updated{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
706 "format": "time_series",
708 "legendFormat": "updated",
721 "value_type": "individual"
754 "repeatIteration": null,
757 "title": "Dashboard Row",
771 "text": "Prometheus",
772 "value": "Prometheus"
776 "name": "datasource",
780 "query": "prometheus",
790 "datasource": "$datasource",
793 "label": "Namespace",
799 "query": "label_values(kube_statefulset_metadata_generation{job=\"kube-state-metrics\"}, namespace)",
803 "tagValuesQuery": "",
816 "datasource": "$datasource",
821 "name": "statefulset",
825 "query": "label_values(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", namespace=\"$namespace\"}, statefulset)",
829 "tagValuesQuery": "",
844 "refresh_intervals": [
869 "title": "Kubernetes / StatefulSets",
870 "uid": "a31c1f46e6f727cb37c0d731a7245005",