Add collector role

Sets up prometheus to pull metrics, with telegraf to process SNMP data.
This commit is contained in:
Timotej Lazar 2025-10-17 22:00:42 +02:00 committed by Gašper Fele-Žorž
parent ce611dd46a
commit 55989d3182
11 changed files with 228 additions and 0 deletions

View file

@ -0,0 +1,17 @@
- name: reload nftables
service:
name: nftables
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: reload prometheus
service:
name: prometheus
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: restart telegraf
service:
name: telegraf
state: restarted # seems to crash on reloads
when: "'handler' not in ansible_skip_tags"