Added defaults for data_source_name
This commit is contained in:
parent
f3f7f504b0
commit
4ac8c4f4a7
3 changed files with 6 additions and 0 deletions
|
@ -63,5 +63,7 @@ prometheus:
|
|||
source_hash: sha256=c34d61bb4deba8efae06fd3c9979b96dae3f3c757698ce3384c80fff586c667b
|
||||
args:
|
||||
url: https://github.com/wrouesnel/postgres_exporter
|
||||
user: postgres
|
||||
group: postgres
|
||||
service_args: []
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ postgres_exporter_defaults:
|
|||
- name: /etc/default/postgres_exporter
|
||||
- source: salt://prometheus/files/default-postgres_exporter.jinja
|
||||
- template: jinja
|
||||
- defaults:
|
||||
data_source_name: {{ prometheus.exporter.postgres.args.get('data_source_name', "") }}
|
||||
|
||||
postgres_exporter_service_unit:
|
||||
file.managed:
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Set the command-line arguments to pass to the postgres_exporter service.
|
||||
ARGS=""
|
||||
|
||||
DATA_SOURCE_NAME="{{ data_source_name }}"
|
||||
|
||||
# postgres exporter supports the following options:
|
||||
# -web.listen-address
|
||||
# -web.telemetry-path
|
||||
|
|
Loading…
Reference in a new issue