Skip to content

Commit

Permalink
Add logging options to Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Baarsgaard committed Sep 24, 2024
1 parent 2a63457 commit c170259
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/helm/grafana-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
- --health-probe-bind-address=:8081
- --metrics-bind-address=0.0.0.0:{{ .Values.metricsService.metricsPort }}
- --pprof-addr=0.0.0.0:{{ .Values.metricsService.pprofPort }}
- -zap-encoder={{ .Values.logging.encoder | default "console" }}
- -zap-log-level={{ .Values.logging.level | default "info" }}
- -zap-time-encoding={{ .Values.logging.time | default "epoch" }}
{{- if .Values.leaderElect }}
- --leader-elect
{{- end }}
Expand Down
9 changes: 9 additions & 0 deletions deploy/helm/grafana-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ watchNamespaceSelector: ""
# -- Determines if the target cluster is OpenShift. Additional rbac permissions for routes will be added on OpenShift
isOpenShift: false

# -- Log options for the Operator
logging:
# -- Log encoding (one of 'json' or 'console')
encoder: console
# -- Configure the verbosity of logging. Can be one of 'debug', 'info', 'error'
level: info
# -- Time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano').
time: epoch

# -- Additional environment variables
env: []
# -- grafana image, e.g. docker.io/grafana/grafana:9.1.6, overwrites the default grafana image defined in the operator
Expand Down

0 comments on commit c170259

Please sign in to comment.