Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
charts/timescaledb-single: allow configuring CLI parameters of postgr…
Browse files Browse the repository at this point in the history
…es_exporter
  • Loading branch information
paulfantom committed Nov 18, 2022
1 parent bfed512 commit ae9ad21
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/timescaledb-single/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: v1
name: timescaledb-single
description: 'TimescaleDB HA Deployment.'
version: 0.22.0
version: 0.23.0
# appVersion specifies the version of the software, which can vary wildly,
# e.g. TimescaleDB 1.4.1 on PostgreSQL 11 or TimescaleDB 1.5.0 on PostgreSQL 12.
# https://github.com/helm/helm/blob/master/docs/charts.md#the-appversion-field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ spec:
{{- if .Values.prometheus.volumeMounts }}
{{ .Values.prometheus.volumeMounts | default list | toYaml | indent 8 }}
{{- end }}
args:
- --extend.query-path=/etc/postgres_exporter/queries.yaml
env:
- name: DATA_SOURCE_NAME
value: "host={{ template "socket_directory" . }} user=postgres application_name=postgres_exporter"
Expand Down
9 changes: 9 additions & 0 deletions charts/timescaledb-single/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,15 @@
"enabled": {
"type": "boolean"
},
"args": {
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"env": {
"items": {
"type": "object"
Expand Down
6 changes: 6 additions & 0 deletions charts/timescaledb-single/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,12 @@ properties:
type: object
additionalProperties: false
properties:
args:
type:
- array
- "null"
items:
type: string
enabled:
type: boolean
env:
Expand Down
4 changes: 4 additions & 0 deletions charts/timescaledb-single/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ prometheus:
# Additional volumes for prometheus, e.g., to support additional queries.
# These should be a Volume, as this allows you to inject any kind of Volume
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#volume-v1-core

# Extra custom CLI arguments for postgres_exporter.
args: []
# - --collector.database=disabled
volumes:
# - name: exporter-config
# configMap:
Expand Down

0 comments on commit ae9ad21

Please sign in to comment.