Add collector role
Sets up prometheus to pull metrics, with telegraf to process SNMP data.
This commit is contained in:
parent
6600a6fa36
commit
da3db8cc02
11 changed files with 228 additions and 0 deletions
12
roles/collector/files/prometheus.nft
Normal file
12
roles/collector/files/prometheus.nft
Normal file
|
@ -0,0 +1,12 @@
|
|||
table inet filter {
|
||||
chain output {
|
||||
type filter hook output priority 0; policy accept;
|
||||
|
||||
skuid prometheus ct state { established, related } accept
|
||||
skuid prometheus th dport domain accept
|
||||
skuid prometheus tcp dport { 443, 9100 } accept comment "prometheus"
|
||||
skuid prometheus ip daddr 127.0.0.1 tcp dport 9090 accept comment "prometheus self"
|
||||
skuid prometheus ip daddr 127.0.0.1 tcp dport 9273 accept comment "telegraf snmp exporter"
|
||||
skuid prometheus drop
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue