igorpick / noobaa-mixins

Prometheus Alerts for NooBaa :cloud: :loudspeaker:

Home Page:https://www.noobaa.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

noobaa-mixins

Prometheus Alerts for NooBaa

Prerequesites

  • Install GO and have your GOPATH updated
  • Install jsonnet
brew install jsonnet
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
GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool

Usage

install dependencies

jb install

Generate the prometheus alert files by

make prometheus_alert_rules.yaml

run tests by

make test

About

Prometheus Alerts for NooBaa :cloud: :loudspeaker:

https://www.noobaa.io

License:Apache License 2.0


Languages

Language:Jsonnet 90.2%Language:Makefile 6.2%Language:Shell 3.5%