Skip to content

Commit

Permalink
Updated chart documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Jan 29, 2024
1 parent 34a01f1 commit a565902
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/cloudnative-pg/templates/grafana-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: {{ .Values.monitoring.grafanaDashboard.configMapName }}
namespace: {{ default .Release.Namespace .Values.monitoring.grafanaDashboard.namespace }}
labels:
{{ .Values.monitoring.grafanaDashboard.sidecarLabel }}: "1"
{{ .Values.monitoring.grafanaDashboard.sidecarLabel }}: {{ .Values.monitoring.grafanaDashboard.sidecarLabelValue | quote }}
data:
cnp.json: |-
{{ .Files.Get "monitoring/grafana-dashboard.json" | indent 6 }}
Expand Down
5 changes: 4 additions & 1 deletion charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ monitoring:
enabled: false
# -- Allows overriding the namespace where the dashboard is installed.
namespace: ""
sidecarLabel: "grafana_dashboard"
# -- The name of the configmap containing the dashboard.
configMapName: "cnpg-grafana-dashboard"
# -- Label that config maps with dashboards should have to be added
sidecarLabel: "grafana_dashboard"
# -- Label value that config maps with dashboards should have to be added
sidecarLabelValue: ""

# Default monitoring queries
monitoringQueriesConfigMap:
Expand Down

0 comments on commit a565902

Please sign in to comment.