airwallex / k8s-pod-restart-info-collector

Automated troubleshooting of Kubernetes Pods issues. Collect K8s pod restart reasons, logs, and events automatically.
325 stars 47 forks source link

[Feature Request] Flag to turn off alerts for exit code 0 #22

Closed csheppard00 closed 1 year ago

csheppard00 commented 1 year ago

Hello,

I am seeing a lot of slack messages from the service for restarts with exit code 0. Can we get an option to disable posting for exit code 0?

Thank you.

unitrade commented 1 year ago

We have a lot of slack messages from the service with exit code 0 too. Please, add this option to disable this. Thank you

jeremych1000 commented 1 year ago

100% needs to happen - woke up to 200 messages in our Slack today all with exit code 0 😂

able8 commented 1 year ago

We have added this feature, see https://github.com/airwallex/k8s-pod-restart-info-collector/blob/master/CHANGELOG.md#130---2023-05-11