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"
- This operator is being developed with prometheus version 2 and above which supports alerting rules in yaml syntax.