rancher-charts/charts/rancher-project-monitoring/0.1.0/templates/dashboards/rancher/workload-dashboards.yaml

18 lines
668 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-workloads
annotations:
{{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }}
labels:
{{- if $.Values.grafana.sidecar.dashboards.label }}
{{ $.Values.grafana.sidecar.dashboards.label }}: "1"
{{- end }}
app: {{ template "project-prometheus-stack.name" $ }}-grafana
{{ include "project-prometheus-stack.labels" $ | indent 4 }}
data:
{{ (.Files.Glob "files/rancher/workloads/*").AsConfig | indent 2 }}
{{- end }}