patch: added the ability to choose which ip to connect

Signed-off-by: msterhuj <gabin.lanore@gmail.com>
This commit is contained in:
msterhuj 2024-05-16 19:46:05 +02:00 committed by gardar
parent b2ddbd9e39
commit cb1c0003c1
2 changed files with 5 additions and 0 deletions

View file

@ -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"

View file

@ -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 }}' \