mirror of
https://github.com/prometheus-community/ansible
synced 2025-02-16 12:48:26 +00:00
Merge pull request #12 from cudevmaxwell/issue-11
node_exporter: Fix broken config file CLI flag name
This commit is contained in:
commit
bed08e8a45
1 changed files with 4 additions and 0 deletions
|
@ -24,7 +24,11 @@ ExecStart={{ _node_exporter_binary_install_dir }}/node_exporter \
|
|||
--no-collector.{{ collector }} \
|
||||
{% endfor %}
|
||||
{% if node_exporter_tls_server_config | length > 0 or node_exporter_http_server_config | length > 0 or node_exporter_basic_auth_users | length > 0 %}
|
||||
{% if node_exporter_version is version('1.5.0', '>=') %}
|
||||
--web.config.file=/etc/node_exporter/config.yaml \
|
||||
{% else %}
|
||||
--web.config=/etc/node_exporter/config.yaml \
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
--web.listen-address={{ node_exporter_web_listen_address }} \
|
||||
--web.telemetry-path={{ node_exporter_web_telemetry_path }}
|
||||
|
|
Loading…
Add table
Reference in a new issue