rancher-charts/charts/rancher-project-monitoring/3.0.0+up0.3.3/templates/dashboards/rancher/pods-dashboards.yaml

18 lines
788 B
YAML
Raw Normal View History

2023-06-30 19:47:01 +00:00
{{- 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 }}