Kubernetes Operator for teams to create there own alerting rules as CRDs.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
pkg
.dockerignore
.gitignore
.travis.yml
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
docker-compose.yaml
main.go

README.md

ops-kube-alerting-rules-operator

Travis Badge Open Source Love MIT Licence

Alerting Rules Operator which will watch for CRDs and update alerting rules section in the prometheus configMap for a given namespace.

Running from source

For development purpose, you can run the operator from your laptop.

  • authenticate to the kubernetes cluster and set the kube-system namespace
  • the following command will run the operator locally with flags required for the kube-system namespace
    go run *.go -kubeconfig ~/.kube/config -alsologtostderr -promlabels="app=prometheus,component=server" -nssuffix=shadow -ns-suffix-ignore="kube-system,default,kube-public,heptio-ark"
    

NOTE:

  1. This operator is being developed with prometheus version 2 and above which supports alerting rules in yaml syntax.