rancher-charts/charts/neuvector-monitor/103.0.3+up2.7.6/templates/dashboard.yaml

20 lines
639 B
YAML

{{- if .Values.exporter.grafanaDashboard.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: nv-grafana-dashboard
namespace: {{ .Values.exporter.grafanaDashboard.namespace | default .Release.Namespace }}
labels:
grafana_dashboard: "1"
{{- if .Values.exporter.grafanaDashboard.labels }}
{{- toYaml .Values.exporter.grafanaDashboard.labels | nindent 4}}
{{- end }}
{{- if .Values.exporter.grafanaDashboard.annotations }}
annotations:
{{- toYaml .Values.exporter.grafanaDashboard.annotations | nindent 4}}
{{- end }}
data:
nv_dashboard.json: |
{{ .Files.Get "dashboards/nv_dashboard.json" | indent 4 }}
{{- end }}