generated from rmcguire/go-server-with-otel
add grafana dashboard
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{- $gd := .Values.hull.config.settings.grafanaDashboard | default dict }}
|
||||
{{- if $gd.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-grafana-dashboard
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- /* Label the Grafana sidecar watches for to auto-import dashboards */}}
|
||||
{{ $gd.label | default "grafana_dashboard" }}: {{ $gd.labelValue | default "1" | quote }}
|
||||
{{- with $gd.folder }}
|
||||
annotations:
|
||||
grafana_folder: {{ . | quote }}
|
||||
{{- end }}
|
||||
data:
|
||||
econet-exporter.json: |-
|
||||
{{ .Files.Get "dashboards/econet-exporter.json" | indent 4 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user