31 lines
999 B
YAML
31 lines
999 B
YAML
{{- with .Values.monitoring.dashboards }}
|
|
{{- if .enabled }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "loki.dashboardsName" $ }}-1
|
|
namespace: {{ .namespace | default $.Release.Namespace }}
|
|
labels:
|
|
{{- include "loki.labels" $ | nindent 4 }}
|
|
{{- with .labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
"loki-chunks.json": |
|
|
{{ $.Files.Get "src/dashboards/loki-chunks.json" | fromJson | toJson }}
|
|
"loki-deletion.json": |
|
|
{{ $.Files.Get "src/dashboards/loki-deletion.json" | fromJson | toJson }}
|
|
"loki-logs.json": |
|
|
{{ $.Files.Get "src/dashboards/loki-logs.json" | fromJson | toJson }}
|
|
"loki-mixin-recording-rules.json": |
|
|
{{ $.Files.Get "src/dashboards/loki-mixin-recording-rules.json" | fromJson | toJson }}
|
|
"loki-operational.json": |
|
|
{{ $.Files.Get "src/dashboards/loki-operational.json" | fromJson | toJson }}
|
|
{{- end -}}
|
|
{{- end -}}
|