r/scrape-collectd: Also scrape unmanaged targets
The `scrape_collectd_extra_targets` variable can be used to specify a list of additional targets to scrape, in addition to the hosts in the *collectd-prometheus* group. This will allow us to scrape hosts that are not managed by the configuration policy, but still expose Prometheus metrics via collectd.step-ssh
parent
d3799607ec
commit
e4c2b36dfd
|
@ -0,0 +1 @@
|
|||
scrape_collectd_extra_targets: []
|
|
@ -1,2 +1,2 @@
|
|||
scrape_collectd_config:
|
||||
- targets: '{{ groups["collectd-prometheus"] }}'
|
||||
- targets: '{{ groups["collectd-prometheus"] + scrape_collectd_extra_targets }}'
|
||||
|
|
Loading…
Reference in New Issue