Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore log patterns #317

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Ignore log patterns #317

merged 1 commit into from
Jun 19, 2024

Conversation

codekoala
Copy link
Contributor

This builds on the work done in #270. It allows alerts to be ignored if the pod logs contain certain patterns. In my case, I was regularly receiving alerts about pods (for 3rd party applications) that terminated themselves when they lost a leader election. Since this is a normal part of their operation, I don't need to be alerted about this event every time it happens.

Changes proposed in this pull request:

  • add a new ignoreLogPatterns config option
  • compile those patterns into regular expressions
  • check to see if pod logs match any of the specified patterns

@codekoala codekoala requested a review from abahmed as a code owner June 17, 2024 21:19
Copy link
Owner

@abahmed abahmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :-)

@abahmed abahmed merged commit 2ab5a04 into abahmed:main Jun 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants