Updated service args for postgres exporter to support configurable user/group args

This commit is contained in:
Eric Renfro 2019-05-13 15:02:27 -04:00
parent ebc4daa188
commit f3f7f504b0
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -40,8 +40,8 @@ postgres_exporter_service_unit:
- template: jinja - template: jinja
- defaults: - defaults:
svc: postgres_exporter svc: postgres_exporter
user: {{ prometheus.user }} user: {{ prometheus.exporter.postgres.args.get('user', prometheus.user) }}
group: {{ prometheus.group }} group: {{ prometheus.exporter.postgres.args.get('group', prometheus.group) }}
bin_path: {{ prometheus.exporter.postgres.version_path }} bin_path: {{ prometheus.exporter.postgres.version_path }}
args: {{ prometheus.exporter.postgres.args.service_args }} args: {{ prometheus.exporter.postgres.args.service_args }}
url: {{ prometheus.exporter.postgres.args.url }} url: {{ prometheus.exporter.postgres.args.url }}