Switch Prometheus/collectd to pull

Transitioning from push-based to pull-based monitoring with
Prometheus/collectd.  The *write_prometheus* plugin will be installed on
all hosts, and Prometheus will be configured to scrape them directly.
ntfy
Dustin 2021-10-30 16:38:19 -05:00
parent b78af05fd8
commit 881c8de625
6 changed files with 5 additions and 12 deletions

View File

@ -4,7 +4,7 @@
tags:
- collectd
- hosts: prometheus
- hosts: collectd-prometheus
roles:
- role: collectd-prometheus
tags:

1
group_vars/collectd.yml Normal file
View File

@ -0,0 +1 @@
collectd_prometheus_allow_outside: true

View File

@ -1,5 +0,0 @@
collectd_network_servers: []
collectd_network_listen:
- '::'
- ff18::efc0:4a42
collectd_prometheus_host: '::1'

View File

@ -45,6 +45,3 @@ networkd_networks:
samba_interfaces:
- enp5s0
collectd_network_servers:
- host: ff18::efc0:4a42
interface: enp5s0

View File

@ -10,6 +10,3 @@ dhcpcd_interfaces:
storage_iface: bond1
samba_interfaces:
- enp5s0
collectd_network_servers:
- host: ff18::efc0:4a42
interface: enp5s0

3
hosts
View File

@ -20,6 +20,9 @@ burp1.pyrocufflink.blue
[collectd:children]
pyrocufflink
[collectd-prometheus:children]
collectd
[dch-proxy]
[dch-vpn]