Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
captainpro-eng opened this issue May 5, 2024 · 2 comments · Fixed by #503
Closed

Comments

@captainpro-eng
Copy link
Contributor

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.

@patrick-stephens
Copy link
Contributor

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

@patrick-stephens patrick-stephens transferred this issue from fluent/fluent-bit May 7, 2024
@captainpro-eng
Copy link
Contributor Author

captainpro-eng commented May 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants