feat: make web telemetry path configurable

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2024-03-08 19:17:25 +00:00
parent 953b0b14c3
commit 7def6b81a4
No known key found for this signature in database
GPG key ID: 75FAE37CBA8C13C2
3 changed files with 6 additions and 1 deletions

View file

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

View file

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

View file

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