Skip to content

Commit

Permalink
Merge pull request #153 from mecodia/feature/more-configurable-exporter
Browse files Browse the repository at this point in the history
feat: postgres exporter username key, password key and uri can be overwritten
  • Loading branch information
hyunysmile committed Jul 26, 2022
2 parents 55bbcb2 + 1901b4f commit 2c454ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/db-instances/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: Database Instances for db operator
name: db-instances
version: 1.2.0
version: 1.3.0
6 changes: 3 additions & 3 deletions charts/db-instances/templates/postgres_exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ spec:
containers:
- env:
- name: DATA_SOURCE_URI
value: dbinstance-{{ $name }}-svc:5432/postgres?sslmode=disable
value: {{ $value.monitoring.uri | default (printf "dbinstance-%s-svc:5432/postgres?sslmode=disable" $name) }}
- name: DATA_SOURCE_PASS_FILE
value: /run/secrets/db-secrets/password
value: /run/secrets/db-secrets/{{ $value.monitoring.passwordKey | default "password" }}
- name: DATA_SOURCE_USER_FILE
value: /run/secrets/db-secrets/user
value: /run/secrets/db-secrets/{{ $value.monitoring.usernameKey | default "user" }}
- name: PG_EXPORTER_WEB_LISTEN_ADDRESS
value: :60000
- name: PG_EXPORTER_EXTEND_QUERY_PATH
Expand Down

0 comments on commit 2c454ff

Please sign in to comment.