diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-18 16:42:41 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-18 16:42:41 +0200 |
| commit | 9ce66cb8a69a874d9219e4df48dfa28e92b587b0 (patch) | |
| tree | 5def586496570d33a45c1491ec26f13fc812ed41 /roles/prometheus/meta | |
| parent | 7e51b1642f6c848e7fc50dab609bf28c03e54e04 (diff) | |
Allow configuring multiple targets for prometheus
The default are localhost, but it can be overridden to allow scrapping
localhost and or remote hosts (for both prometheus job and node exporter
jobs)
Diffstat (limited to 'roles/prometheus/meta')
| -rw-r--r-- | roles/prometheus/meta/argument_specs.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/prometheus/meta/argument_specs.yml b/roles/prometheus/meta/argument_specs.yml index 4d4d65e6..6a6db4c4 100644 --- a/roles/prometheus/meta/argument_specs.yml +++ b/roles/prometheus/meta/argument_specs.yml @@ -24,3 +24,13 @@ argument_specs: description: "Port for node-exporter metrics endpoint" type: "int" default: 9100 + prometheus_targets: + description: "The list of prometheus targets to scrape" + type: "list" + elements: "str" + default: ["{{ prometheus_host }}:{{ prometheus_port }}"] + prometheus_node_exporter_targets: + description: "The list of node_exporter targets to scrape" + type: "list" + elements: "str" + default: ["{{ prometheus_host }}:{{ prometheus_node_exporter_port }}"] |
