1 # Generated from 'statefulset' 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" $) "statefulset" | 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 }}
24 "hideControls": false,
37 "colorBackground": false,
41 "rgba(237, 129, 40, 0.89)",
44 "datasource": "$datasource",
50 "thresholdLabels": false,
51 "thresholdMarkers": true
64 "name": "value to text",
68 "name": "range to text",
73 "nullPointMode": "connected",
76 "postfixFontSize": "50%",
78 "prefixFontSize": "50%",
88 "fillColor": "rgba(31, 118, 189, 0.18)",
89 "lineColor": "rgb(31, 120, 193)",
95 "expr": "sum(rate(container_cpu_usage_seconds_total{job=\"kubelet\", namespace=\"$namespace\", pod_name=\u007e\"$statefulset.*\"}[3m]))",
96 "format": "time_series",
104 "type": "singlestat",
105 "valueFontSize": "80%",
113 "valueName": "current"
116 "cacheTimeout": null,
117 "colorBackground": false,
121 "rgba(237, 129, 40, 0.89)",
124 "datasource": "$datasource",
130 "thresholdLabels": false,
131 "thresholdMarkers": true
144 "name": "value to text",
148 "name": "range to text",
152 "maxDataPoints": 100,
153 "nullPointMode": "connected",
156 "postfixFontSize": "50%",
158 "prefixFontSize": "50%",
168 "fillColor": "rgba(31, 118, 189, 0.18)",
169 "lineColor": "rgb(31, 120, 193)",
175 "expr": "sum(container_memory_usage_bytes{job=\"kubelet\", namespace=\"$namespace\", pod_name=\u007e\"$statefulset.*\"}) / 1024^3",
176 "format": "time_series",
184 "type": "singlestat",
185 "valueFontSize": "80%",
193 "valueName": "current"
196 "cacheTimeout": null,
197 "colorBackground": false,
201 "rgba(237, 129, 40, 0.89)",
204 "datasource": "$datasource",
210 "thresholdLabels": false,
211 "thresholdMarkers": true
224 "name": "value to text",
228 "name": "range to text",
232 "maxDataPoints": 100,
233 "nullPointMode": "connected",
236 "postfixFontSize": "50%",
238 "prefixFontSize": "50%",
248 "fillColor": "rgba(31, 118, 189, 0.18)",
249 "lineColor": "rgb(31, 120, 193)",
255 "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]))",
256 "format": "time_series",
264 "type": "singlestat",
265 "valueFontSize": "80%",
273 "valueName": "current"
277 "repeatIteration": null,
280 "title": "Dashboard Row",
290 "cacheTimeout": null,
291 "colorBackground": false,
295 "rgba(237, 129, 40, 0.89)",
298 "datasource": "$datasource",
304 "thresholdLabels": false,
305 "thresholdMarkers": true
318 "name": "value to text",
322 "name": "range to text",
326 "maxDataPoints": 100,
327 "nullPointMode": "connected",
330 "postfixFontSize": "50%",
332 "prefixFontSize": "50%",
342 "fillColor": "rgba(31, 118, 189, 0.18)",
344 "lineColor": "rgb(31, 120, 193)",
350 "expr": "max(kube_statefulset_replicas{job=\"kube-state-metrics\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
351 "format": "time_series",
358 "title": "Desired Replicas",
359 "type": "singlestat",
360 "valueFontSize": "80%",
368 "valueName": "current"
371 "cacheTimeout": null,
372 "colorBackground": false,
376 "rgba(237, 129, 40, 0.89)",
379 "datasource": "$datasource",
385 "thresholdLabels": false,
386 "thresholdMarkers": true
399 "name": "value to text",
403 "name": "range to text",
407 "maxDataPoints": 100,
408 "nullPointMode": "connected",
411 "postfixFontSize": "50%",
413 "prefixFontSize": "50%",
423 "fillColor": "rgba(31, 118, 189, 0.18)",
425 "lineColor": "rgb(31, 120, 193)",
431 "expr": "min(kube_statefulset_status_replicas_current{job=\"kube-state-metrics\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
432 "format": "time_series",
439 "title": "Replicas of current version",
440 "type": "singlestat",
441 "valueFontSize": "80%",
449 "valueName": "current"
452 "cacheTimeout": null,
453 "colorBackground": false,
457 "rgba(237, 129, 40, 0.89)",
460 "datasource": "$datasource",
466 "thresholdLabels": false,
467 "thresholdMarkers": true
480 "name": "value to text",
484 "name": "range to text",
488 "maxDataPoints": 100,
489 "nullPointMode": "connected",
492 "postfixFontSize": "50%",
494 "prefixFontSize": "50%",
504 "fillColor": "rgba(31, 118, 189, 0.18)",
506 "lineColor": "rgb(31, 120, 193)",
512 "expr": "max(kube_statefulset_status_observed_generation{job=\"kube-state-metrics\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
513 "format": "time_series",
520 "title": "Observed Generation",
521 "type": "singlestat",
522 "valueFontSize": "80%",
530 "valueName": "current"
533 "cacheTimeout": null,
534 "colorBackground": false,
538 "rgba(237, 129, 40, 0.89)",
541 "datasource": "$datasource",
547 "thresholdLabels": false,
548 "thresholdMarkers": true
561 "name": "value to text",
565 "name": "range to text",
569 "maxDataPoints": 100,
570 "nullPointMode": "connected",
573 "postfixFontSize": "50%",
575 "prefixFontSize": "50%",
585 "fillColor": "rgba(31, 118, 189, 0.18)",
587 "lineColor": "rgb(31, 120, 193)",
593 "expr": "max(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", statefulset=\"$statefulset\", namespace=\"$namespace\"}) without (instance, pod)",
594 "format": "time_series",
601 "title": "Metadata Generation",
602 "type": "singlestat",
603 "valueFontSize": "80%",
611 "valueName": "current"
615 "repeatIteration": null,
618 "title": "Dashboard Row",
633 "datasource": "$datasource",
640 "alignAsTable": false,
655 "nullPointMode": "null",
666 "steppedLine": false,
669 "expr": "max(kube_statefulset_replicas{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
670 "format": "time_series",
672 "legendFormat": "replicas specified",
676 "expr": "max(kube_statefulset_status_replicas{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
677 "format": "time_series",
679 "legendFormat": "replicas created",
683 "expr": "min(kube_statefulset_status_replicas_ready{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
684 "format": "time_series",
686 "legendFormat": "ready",
690 "expr": "min(kube_statefulset_status_replicas_current{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
691 "format": "time_series",
693 "legendFormat": "replicas of current version",
697 "expr": "min(kube_statefulset_status_replicas_updated{job=\"kube-state-metrics\", statefulset=\"$statefulset\",namespace=\"$namespace\"}) without (instance, pod)",
698 "format": "time_series",
700 "legendFormat": "updated",
713 "value_type": "individual"
746 "repeatIteration": null,
749 "title": "Dashboard Row",
763 "text": "Prometheus",
764 "value": "Prometheus"
768 "name": "datasource",
772 "query": "prometheus",
782 "datasource": "$datasource",
785 "label": "Namespace",
791 "query": "label_values(kube_statefulset_metadata_generation{job=\"kube-state-metrics\"}, namespace)",
795 "tagValuesQuery": "",
808 "datasource": "$datasource",
813 "name": "statefulset",
817 "query": "label_values(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", namespace=\"$namespace\"}, statefulset)",
821 "tagValuesQuery": "",
836 "refresh_intervals": [
861 "title": "StatefulSets",
862 "uid": "a31c1f46e6f727cb37c0d731a7245005",