helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Conflict in UIDs of Grafana dashboard when running multiple Fluent Bit Helm Release.

Open captainpro-eng opened this issue 9 months ago • 1 comments

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.

captainpro-eng avatar May 05 '24 11:05 captainpro-eng

This should be on the helm charts repo so moving it.

patrick-stephens avatar May 07 '24 12:05 patrick-stephens

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" . }}",

captainpro-eng avatar May 12 '24 05:05 captainpro-eng