1 # Generated from 'pods' 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" $) "pods" | 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",
72 "nullPointMode": "null",
86 "expr": "sum by(container_name) (container_memory_usage_bytes{job=\"kubelet\", namespace=\"$namespace\", pod_name=\"$pod\", container_name=\u007e\"$container\", container_name!=\"POD\"})",
87 "format": "time_series",
89 "legendFormat": "Current: {{`{{ container_name }}`}}",
93 "expr": "sum by(container) (kube_pod_container_resource_requests_memory_bytes{job=\"kube-state-metrics\", namespace=\"$namespace\", pod=\"$pod\", container=\u007e\"$container\"})",
94 "format": "time_series",
96 "legendFormat": "Requested: {{`{{ container }}`}}",
100 "expr": "sum by(container) (kube_pod_container_resource_limits_memory_bytes{job=\"kube-state-metrics\", namespace=\"$namespace\", pod=\"$pod\", container=\u007e\"$container\"})",
101 "format": "time_series",
103 "legendFormat": "Limit: {{`{{ container }}`}}",
112 "title": "Memory Usage",
116 "value_type": "individual"
149 "repeatIteration": null,
152 "title": "Dashboard Row",
167 "datasource": "$datasource",
174 "alignAsTable": true,
189 "nullPointMode": "null",
200 "steppedLine": false,
203 "expr": "sum by (container_name) (rate(container_cpu_usage_seconds_total{job=\"kubelet\", namespace=\"$namespace\", image!=\"\",container_name!=\"POD\",pod_name=\"$pod\"}[1m]))",
204 "format": "time_series",
206 "legendFormat": "{{`{{ container_name }}`}}",
215 "title": "CPU Usage",
219 "value_type": "individual"
252 "repeatIteration": null,
255 "title": "Dashboard Row",
270 "datasource": "$datasource",
277 "alignAsTable": true,
292 "nullPointMode": "null",
303 "steppedLine": false,
306 "expr": "sort_desc(sum by (pod_name) (rate(container_network_receive_bytes_total{job=\"kubelet\", namespace=\"$namespace\", pod_name=\"$pod\"}[1m])))",
307 "format": "time_series",
309 "legendFormat": "{{`{{ pod_name }}`}}",
318 "title": "Network I/O",
322 "value_type": "individual"
355 "repeatIteration": null,
358 "title": "Dashboard Row",
372 "text": "Prometheus",
373 "value": "Prometheus"
377 "name": "datasource",
381 "query": "prometheus",
391 "datasource": "$datasource",
394 "label": "Namespace",
400 "query": "label_values(kube_pod_info, namespace)",
404 "tagValuesQuery": "",
417 "datasource": "$datasource",
426 "query": "label_values(kube_pod_info{namespace=\u007e\"$namespace\"}, pod)",
430 "tagValuesQuery": "",
443 "datasource": "$datasource",
446 "label": "Container",
452 "query": "label_values(kube_pod_container_info{namespace=\"$namespace\", pod=\"$pod\"}, container)",
456 "tagValuesQuery": "",
471 "refresh_intervals": [
496 "title": "Kubernetes / Pods",
497 "uid": "ab4f13a9892a76a4d21ce8c2445bf4ea",