Skip to content

Commit

Permalink
Make UID of grafana Fluent Bit dashboard configurable in values (#532)
Browse files Browse the repository at this point in the history
* Make UID of grafana Fluent Bit dashboard a sha1sum of name and namespace

Signed-off-by: Ayoub Nasr <[email protected]>

* Bump version, add release notes

Signed-off-by: Ayoub Nasr <[email protected]>

---------

Signed-off-by: Ayoub Nasr <[email protected]>
  • Loading branch information
eg-ayoub authored Sep 3, 2024
1 parent ae372dd commit da71989
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- logging
- fluent-bit
- fluentd
version: 0.47.8
version: 0.47.9
appVersion: 3.1.7
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
home: https://fluentbit.io/
Expand All @@ -23,4 +23,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Updated Fluent Bit OCI image to v3.1.7."
description: "Made fluent-bit grafana dashboard uid configurable"
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 da71989

Please sign in to comment.