helm-charts
helm-charts copied to clipboard
Conflict in UIDs of Grafana dashboard when running multiple Fluent Bit Helm Release.
Is your feature request related to a problem? Please describe.
Currently, when deploying multiple release of Fluent Bit using the Helm chart, we encounter conflicts in fixed UIDs used in grafana dashboard in the Fluent Bit helm chart. Specifically, This results in clashes when multiple release are deployed simultaneously, leading to unexpected behavior and error the same UID is used more than once
.
Describe the solution you'd like Each release of Fluent Bit should should use unique UIDs to prevent conflicts.
we can extra values parameter to ignore this conflict.
This should be on the helm charts repo so moving it.
Solution:- Define in helper template:
{{- define "ffluent-bit.dashboard.uid" -}} {{- sha256sum (printf "%s/%s" .Release.Namespace .Release.Name) }} {{- end -}}
and then reference it as in fluent-bit.json:
"uid": "{{ include "fluent-bit.dashboard.uid" . }}",