mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
patch: added the ability to choose which ip to connect
Signed-off-by: msterhuj <gabin.lanore@gmail.com>
This commit is contained in:
parent
b2ddbd9e39
commit
cb1c0003c1
2 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,8 @@ memcached_exporter_skip_install: false
|
|||
|
||||
memcached_exporter_memcached_pid_file: ""
|
||||
|
||||
memcached_exporter_memcached_address: ""
|
||||
|
||||
memcached_exporter_web_listen_address: "0.0.0.0:9150"
|
||||
memcached_exporter_web_telemetry_path: "/metrics"
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ Group={{ memcached_exporter_system_group }}
|
|||
ExecStart={{ memcached_exporter_binary_install_dir }}/memcached_exporter \
|
||||
{% if memcached_exporter_memcached_pid_file != "" %}
|
||||
'--memcached.pid-file={{ memcached_exporter_memcached_pid_file }}' \
|
||||
{% endif %}
|
||||
{% if memcached_exporter_memcached_address != "" %}
|
||||
'--memcached.address={{ memcached_exporter_memcached_address }}' \
|
||||
{% endif %}
|
||||
'--web.listen-address={{ memcached_exporter_web_listen_address }}' \
|
||||
'--web.telemetry-path={{ memcached_exporter_web_telemetry_path }}' \
|
||||
|
|
Loading…
Reference in a new issue