mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 06:14:13 +00:00
feat: make web telemetry path configurable
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
953b0b14c3
commit
7def6b81a4
3 changed files with 6 additions and 1 deletions
|
@ -8,6 +8,7 @@ process_exporter_skip_install: false
|
|||
|
||||
|
||||
process_exporter_web_listen_address: "0.0.0.0:9256"
|
||||
process_exporter_web_telemetry_path: "/metrics"
|
||||
|
||||
# Process names
|
||||
# "raw" section is needed to avoid attempted interpretation
|
||||
|
|
|
@ -29,6 +29,9 @@ argument_specs:
|
|||
process_exporter_web_listen_address:
|
||||
description: "Address on which Process exporter will listen"
|
||||
default: "0.0.0.0:9256"
|
||||
process_exporter_web_telemetry_path:
|
||||
description: "Path under which to expose metrics"
|
||||
default: "/metrics"
|
||||
process_exporter_names:
|
||||
description:
|
||||
- "Processes which should be monitored."
|
||||
|
|
|
@ -12,7 +12,8 @@ ExecStart={{ process_exporter_binary_install_dir }}/process_exporter \
|
|||
{% if process_exporter_names != [] -%}
|
||||
'--config.path=/etc/process_exporter/config.yml' \
|
||||
{% endif -%}
|
||||
'--web.listen-address={{ process_exporter_web_listen_address }}'
|
||||
'--web.listen-address={{ process_exporter_web_listen_address }}' \
|
||||
'--web.telemetry-path={{ process_exporter_web_telemetry_path }}'
|
||||
|
||||
SyslogIdentifier=process_exporter
|
||||
Restart=always
|
||||
|
|
Loading…
Reference in a new issue