mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-29 07:10:18 +00:00
Add ability to disable exporter metrics itself
Signed-off-by: Rimantas Ragainis <rimantas.ragainis@gmail.com>
This commit is contained in:
parent
c6248595b3
commit
dae9cd6ec0
3 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,7 @@ node_exporter_binary_url: "https://github.com/{{ _node_exporter_repo }}/releases
|
||||||
node_exporter_checksums_url: "https://github.com/{{ _node_exporter_repo }}/releases/download/v{{ node_exporter_version }}/sha256sums.txt"
|
node_exporter_checksums_url: "https://github.com/{{ _node_exporter_repo }}/releases/download/v{{ node_exporter_version }}/sha256sums.txt"
|
||||||
node_exporter_skip_install: false
|
node_exporter_skip_install: false
|
||||||
|
|
||||||
|
node_exporter_web_disable_exporter_metrics: false
|
||||||
node_exporter_web_listen_address: "0.0.0.0:9100"
|
node_exporter_web_listen_address: "0.0.0.0:9100"
|
||||||
node_exporter_web_telemetry_path: "/metrics"
|
node_exporter_web_telemetry_path: "/metrics"
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,10 @@ argument_specs:
|
||||||
node_exporter_checksums_url:
|
node_exporter_checksums_url:
|
||||||
description: "URL of the node exporter checksums file"
|
description: "URL of the node exporter checksums file"
|
||||||
default: "https://github.com/{{ _node_exporter_repo }}/releases/download/v{{ node_exporter_version }}/sha256sums.txt"
|
default: "https://github.com/{{ _node_exporter_repo }}/releases/download/v{{ node_exporter_version }}/sha256sums.txt"
|
||||||
|
node_exporter_web_disable_exporter_metrics:
|
||||||
|
description: "Exclude metrics about the exporter itself (promhttp_*, process_*, go_*)."
|
||||||
|
type: bool
|
||||||
|
default: false
|
||||||
node_exporter_web_listen_address:
|
node_exporter_web_listen_address:
|
||||||
description: "Address on which node exporter will listen"
|
description: "Address on which node exporter will listen"
|
||||||
default: "0.0.0.0:9100"
|
default: "0.0.0.0:9100"
|
||||||
|
|
|
@ -30,6 +30,9 @@ ExecStart={{ node_exporter_binary_install_dir }}/node_exporter \
|
||||||
'--web.config=/etc/node_exporter/config.yaml' \
|
'--web.config=/etc/node_exporter/config.yaml' \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if node_exporter_web_disable_exporter_metrics %}
|
||||||
|
'--web.disable-exporter-metrics' \
|
||||||
|
{% endif %}
|
||||||
{% if node_exporter_version is version('1.5.0', '>=') and
|
{% if node_exporter_version is version('1.5.0', '>=') and
|
||||||
node_exporter_web_listen_address is iterable and
|
node_exporter_web_listen_address is iterable and
|
||||||
node_exporter_web_listen_address is not mapping and
|
node_exporter_web_listen_address is not mapping and
|
||||||
|
|
Loading…
Reference in a new issue