Skip to content

Commit

Permalink
[prometheus-mysql-exporter] Implement config.extraArgs to be able to …
Browse files Browse the repository at this point in the history
…define any cmdline argument (#5010)

* Implement config.extraArgs to be able to define all cmdline arguments

Signed-off-by: festeveira <[email protected]>

* Update values.yaml

Signed-off-by: André Bauer <[email protected]>

---------

Signed-off-by: festeveira <[email protected]>
Signed-off-by: André Bauer <[email protected]>
Co-authored-by: André Bauer <[email protected]>
  • Loading branch information
festeveira and monotek authored Nov 22, 2024
1 parent 4dd994b commit 2dc65bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-mysql-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for prometheus mysql exporter with cloudsqlproxy
name: prometheus-mysql-exporter
version: 2.7.0
version: 2.8.0
home: https://github.com/prometheus/mysqld_exporter
appVersion: v0.16.0
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-mysql-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
{{- if .Values.config.logFormat }}
- "--log.format={{ .Values.config.logFormat }}"
{{- end}}
{{- if .Values.config.extraArgs }}
{{- .Values.config.extraArgs | toYaml | nindent 12 }}
{{- end }}
{{- with .Values.collectors }}
{{- range $index, $element := . }}
{{- if and (typeIs "bool" $element) $element }}
Expand Down
5 changes: 4 additions & 1 deletion charts/prometheus-mysql-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,13 @@ annotations:
prometheus.io/path: "/metrics"
prometheus.io/port: "9104"

config: {}
config:
# Allow to set specifc options on the exporter
# logLevel: info
# logFormat: "logger:stderr"
#
# extra arguments as a list of strings
extraArgs: []

collectors: {}
# auto_increment.columns: false
Expand Down

0 comments on commit 2dc65bb

Please sign in to comment.