Skip to content

Ignore log patterns#317

Merged
abahmed merged 1 commit intoabahmed:mainfrom
codekoala:ignore-log-patterns
Jun 19, 2024
Merged

Ignore log patterns#317
abahmed merged 1 commit intoabahmed:mainfrom
codekoala:ignore-log-patterns

Conversation

@codekoala
Copy link
Copy Markdown
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
Copy Markdown
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
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