Some checks failed
CI Pipeline / Build and Test (push) Successful in 4s
Security Scanning / Trivy — Filesystem & Dependency Scan (push) Failing after 7s
Security Scanning / Gitleaks — Secret Scan (push) Failing after 7s
Security Scanning / Security Summary (push) Failing after 3s
Build and Publish TechDocs / build-and-publish (push) Successful in 1m2s
Change-Id: I8e318861a258686ddc53dda08858f74c573a6520
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
{{- if .Values.grafana.enabled -}}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-alerting
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "otel-demo.labels" . | nindent 4 }}
|
|
grafana_alert: "1"
|
|
data:
|
|
{{ (.Files.Glob "grafana/provisioning/alerting/*.yaml").AsConfig | nindent 2 }}
|
|
|
|
{{- range $path, $_ := .Files.Glob "grafana/provisioning/dashboards/*.json" }}
|
|
{{- $name := base $path | trimSuffix ".json" }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-dashboard-{{ $name | lower }}
|
|
namespace: {{ $.Release.Namespace }}
|
|
labels:
|
|
{{- include "otel-demo.labels" $ | nindent 4 }}
|
|
grafana_dashboard: "1"
|
|
data:
|
|
{{ $name }}.json: |-
|
|
{{ $.Files.Get $path | indent 4 }}
|
|
{{- end }}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-datasources
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "otel-demo.labels" . | nindent 4 }}
|
|
grafana_datasource: "1"
|
|
data:
|
|
{{ (.Files.Glob "grafana/provisioning/datasources/*.yaml").AsConfig | nindent 2 }}
|
|
|
|
{{- end }}
|