I must admit that I am a beginner in Prometheus operator.
I have deployed "kube-prometheus-stack-14.5.0" Helm chart on the Kubernetes cluster.
Hence the version of Alertmanager is also deployed together.( "alertmanager:v0.21.0")
https://github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-14.5.0
It all works fine except alertmanager sends too much notification for each activity on the cluster.
Feel free to correct me if I am wrong:
After debugging I realized that there are so many Rules configured in the Prometheus Rules file, therefore, Alertmanager is triggering an alert for each rule.
Rules are configured under Prometheus deployment -->
/etc/prometheus/rules/prometheus-prometheus-kube-prometheus-prometheus-rulefiles-0 $ ls -la
monitoring-prometheus-kube-prometheus-kubelet.rules.yaml -> ..data
monitoring-prometheus-kube-prometheus-node.rules.yaml -> ..data
etc.......
Is it possible to override these rules?
Is it possible to delete these default rules?
E-mail is configured in Alertmanager and now I get every day more than 1000 emails.
This is definitely over alerting. I want to send notifications only for specific activities on the cluster.
Such as Pod/Applications in pending state or crashloop, or HostHighCpuLoad, HostOutOfDiskSpace, etc, etc.
In a simple way, I want to send notifications to 3 different people(Developer, Tester, and Teamlead)
Also,
Is it possible to write my own custom rule file?
If yes, then where I can configure rules in values.yaml file.
or How can I deploy my own rule files together with Helm chart?
Alertmanager config:
Looking for support since I am really struggling for a couple of days.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/479631da-d198-422d-b53e-fe88f34f3135n%40googlegroups.com.