Files
devops-infra-helm-charts-gcp/helm-templates/mimir-distributed/templates/metamonitoring/grafana-dashboards.yaml
T
2026-08-26 03:39:42 +05:30

28 lines
698 B
YAML

{{- $currentScope := .Values.metaMonitoring.dashboards }}
{{- if $currentScope.enabled }}
{{ range $path, $_ := $.Files.Glob "mixins/dashboards/*.json" }}
{{ $file := $path | base }}
{{ $name := print ($file | trimSuffix ".json") "-dashboard" }}
{{- with $currentScope}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $name }}
namespace: {{ $.Release.Namespace }}
labels:
{{- include "mimir.labels" (dict "ctx" $) | nindent 4 }}
{{- with .labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ $file }}: |-
{{ $.Files.Get $path | indent 4 }}
---
{{- end }}
{{ end }}
{{- end }}