Skip to content

Commit

Permalink
Make UID of grafana Fluent Bit dashboard a sha1sum of name and namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Ayoub Nasr <[email protected]>
  • Loading branch information
eg-ayoub committed Aug 30, 2024
1 parent 768bbfd commit 7d2bf5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/fluent-bit/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ logLevel: debug

dashboards:
enabled: true
deterministicUid: true
2 changes: 1 addition & 1 deletion charts/fluent-bit/dashboards/fluent-bit.json
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@
},
"timezone": "",
"title": "{{ include "fluent-bit.fullname" . }}",
"uid": null,
"uid": {{ ternary (printf "\"%s\"" (sha1sum (printf "\"%s-%s\"" .Release.Namespace (include "fluent-bit.fullname" .)))) "null" .Values.dashboards.deterministicUid }},
"version": 7,
"weekStart": ""
}
1 change: 1 addition & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ dashboards:
labelValue: 1
annotations: {}
namespace: ""
deterministicUid: false

lifecycle: {}
# preStop:
Expand Down

0 comments on commit 7d2bf5d

Please sign in to comment.