summaryrefslogtreecommitdiffstats
path: root/roles/prometheus/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-18 16:42:41 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-18 16:42:41 +0200
commit9ce66cb8a69a874d9219e4df48dfa28e92b587b0 (patch)
tree5def586496570d33a45c1491ec26f13fc812ed41 /roles/prometheus/meta
parent7e51b1642f6c848e7fc50dab609bf28c03e54e04 (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.yml10
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 }}"]