Skip to content

Instantly share code, notes, and snippets.

@fire
Last active August 29, 2015 14:13
Show Gist options
  • Save fire/7caaf196c4b250bfe0e5 to your computer and use it in GitHub Desktop.
Save fire/7caaf196c4b250bfe0e5 to your computer and use it in GitHub Desktop.

install go lang

go install bosun.org/cmd/bosun

nano dev.conf

smtpHost = mail.chibifire.com:25
emailFrom = [email protected]

template cpu {
	body = `Alert definition:
	Name: {{.Alert.Name}}
	Crit: {{.Alert.Crit}}

	Tags:{{range $k, $v := .Tags}}
	{{$k}}: {{$v}}{{end}}
	`
	subject = cpu idle at {{.Alert.Vars.q | .E}} on {{.Tags.host}}
}

notification default {
	email = [email protected]
	next = default
	timeout = 1h
}
brew install influxdb
influxdb -config=/usr/local/etc/influxdb.conf
brew install collectd
ln 
tell conf to send to localhost

# Uncomment this:
LoadPlugin network
# Uncomment/update this:
<Plugin network>
  Server "127.0.0.1" "8096"
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment