rancher-charts/charts/rancher-project-monitoring/2.1.0+up0.3.0/templates/dashboards/rancher/pods-dashboards.yaml

18 lines
788 B
YAML

{{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
apiVersion: v1
kind: ConfigMap
metadata:
namespace: {{ template "project-prometheus-stack.namespace" . }}
name: rancher-default-dashboards-pods
annotations:
{{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }}
labels:
{{- if $.Values.grafana.sidecar.dashboards.label }}
{{ $.Values.grafana.sidecar.dashboards.label }}: {{ ternary $.Values.grafana.sidecar.dashboards.labelValue "1" (not (empty $.Values.grafana.sidecar.dashboards.labelValue)) | quote }}
{{- end }}
app: {{ template "project-prometheus-stack.name" $ }}-grafana
{{ include "project-prometheus-stack.labels" $ | indent 4 }}
data:
{{ (.Files.Glob "files/rancher/pods/*").AsConfig | indent 2 }}
{{- end }}