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
Dustin 2023-09-27 20:22:57 -05:00
parent d3799607ec
commit e4c2b36dfd
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
scrape_collectd_extra_targets: []

View File

@ -1,2 +1,2 @@
scrape_collectd_config:
- targets: '{{ groups["collectd-prometheus"] }}'
- targets: '{{ groups["collectd-prometheus"] + scrape_collectd_extra_targets }}'