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

master
Eric Renfro 4 years ago
parent ebc4daa188
commit f3f7f504b0
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
  1. 4
      prometheus/exporter/postgres.sls

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

Loading…
Cancel
Save