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.
3 lines
105 B
YAML
3 lines
105 B
YAML
scrape_collectd_config:
|
|
- targets: '{{ groups["collectd-prometheus"] + scrape_collectd_extra_targets }}'
|