robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
544 stars 79 forks source link

Need provision to send alert for particular state of the pod/container/cm ... #70

Closed SSpirate closed 3 months ago

SSpirate commented 4 months ago

Hi Team, Adding a feature to Kubewatch that enables sending alerts only for specific pod states (e.g., Killed, Pending) would greatly assist in efficiently managing alerts, preventing unnecessary stacking

aantn commented 3 months ago

Hi @SSpirate, You can do this type of advanced filtering with Robusta OSS that uses KubeWatch under the hood: https://docs.robusta.dev/master/playbook-reference/triggers/kubernetes.html#on-pod-crash-loop

This isn't supported in KubeWatch alone, but I hope that helps!