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.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
tags:
|
||||
- collectd
|
||||
|
||||
- hosts: prometheus
|
||||
- hosts: collectd-prometheus
|
||||
roles:
|
||||
- role: collectd-prometheus
|
||||
tags:
|
||||
|
||||
1
group_vars/collectd.yml
Normal file
1
group_vars/collectd.yml
Normal file
@@ -0,0 +1 @@
|
||||
collectd_prometheus_allow_outside: true
|
||||
@@ -1,5 +0,0 @@
|
||||
collectd_network_servers: []
|
||||
collectd_network_listen:
|
||||
- '::'
|
||||
- ff18::efc0:4a42
|
||||
collectd_prometheus_host: '::1'
|
||||
|
||||
@@ -45,6 +45,3 @@ networkd_networks:
|
||||
|
||||
samba_interfaces:
|
||||
- enp5s0
|
||||
collectd_network_servers:
|
||||
- host: ff18::efc0:4a42
|
||||
interface: enp5s0
|
||||
|
||||
@@ -10,6 +10,3 @@ dhcpcd_interfaces:
|
||||
storage_iface: bond1
|
||||
samba_interfaces:
|
||||
- enp5s0
|
||||
collectd_network_servers:
|
||||
- host: ff18::efc0:4a42
|
||||
interface: enp5s0
|
||||
|
||||
Reference in New Issue
Block a user