Bosun Cheatsheet
Bosun
rule file path - definitions of all rules and alerts, can version control this
RuleFilePath = "dev.sample.conf"
dfdf
Alerting
https://stackoverflow.com/documentation/bosun/topics
Scollector - collection agent
start agent with a conf file, send to Bosun Master
scollector -h <ip of master>:8070
monitor a service
vim /etc/bosun/scollector.toml
[[Process]]
Name = "puppet agent"
Command = "/usr/bin/ruby"
Args = "puppet"
[[SystemdService]] Name = "^(puppet|redis-.*|keepalived|haproxy-t.*)$" WatchProc = false
Scollector systemd startup script, save to: /etc/systemd/system/scollector.service
[Unit] Description=Scollector Service After=network.target [Service] Type=simple User=root ExecStart=/opt/scollector/scollector -conf /etc/bosun/scollector.toml Restart=on-abort [Install] WantedBy=multi-user.target
list all available collectors
scollector -l