Prometheus Alerts for NooBaa
- Install GO and have your GOPATH updated
- Install jsonnet
brew install jsonnet
- Install jsonnet-bundler
go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
- Check that jb is installed
jb
If the command is not found add the jb
into the PATH
PATH=${PATH}:$(go env GOPATH)/bin
- For jsonnet > 0.13 it seems that brew is missing some binaries so also install the following two
go get github.com/brancz/gojsontoyaml
go get github.com/google/go-jsonnet/cmd/jsonnetfmt
- Install promtool
GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool
install dependencies
jb install
Generate the prometheus alert files by
make prometheus_alert_rules.yaml
run tests by
make test