Prometheus notes

master
Jeff Moe 6 years ago
parent 86e5a68f4c
commit c2338d076c

@ -14,3 +14,52 @@ apt install prometheus-alertmanager prometheus prometheus-node-exporter
-A INPUT -p tcp --dport 9094 -j ACCEPT
-A INPUT -p tcp --dport 9100 -j ACCEPT
# Install exporter on all nodes
# Stretch:
apt install -t stretch-backports prometheus-node-exporter
# Buster:
apt install prometheus-node-exporter
# To enable various collectors on a node, edit:
vim /etc/default/prometheus-node-exporter
# Ones of note:
-collector.netstat.fields=(.*) --collector.vmstat.fields=(.*) --collector.interrupts
# Add to all: XXX not done
################
--collector.netstat.fields="^(.*_(InErrors|InErrs)|Ip_Forwarding|Ip(6|Ext)_(InOctets|OutOctets)|Icmp6?_(InMsgs|OutMsgs)|TcpExt_(Listen.*|Syncookies.*)|Tcp_(ActiveOpens|PassiveOpens|RetransSegs|CurrEstab)|Udp6?_(InDatagrams|OutDatagrams|NoPorts))$"
--collector.vmstat.fields="^(oom_kill|pgpg|pswp|pg.*fault).*"
--collector.interrupts
--collector.ntp
--collector.systemd
################
# For MySQL servers:
apt install prometheus-mysqld-exporter
# Borg exporter:
https://github.com/teemow/prometheus-borg-exporter
https://grafana.com/dashboards/1573
# Email
# graylog:
# Apache:
https://grafana.com/dashboards/4859
https://grafana.com/dashboards/4865
# nginx
https://grafana.com/dashboards/6482
https://grafana.com/dashboards/4368
https://grafana.com/dashboards/6787
# postgres
https://grafana.com/dashboards/3300
https://grafana.com/dashboards/455
https://grafana.com/dashboards/3742
https://grafana.com/dashboards/6742
# Unbound DNS
https://grafana.com/dashboards/3930

Loading…
Cancel
Save