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

Ability to exclude some pods based on label or name #329

Closed
mlewiarz opened this issue Aug 29, 2020 · 3 comments
Closed

Ability to exclude some pods based on label or name #329

mlewiarz opened this issue Aug 29, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@mlewiarz
Copy link

I want to monitor pods in some critical namespaces but in these namespaces we also have cronjobs which dumps db.
Problem is we got alerts when pods of this cronjobs are created and deleted.
Dumps are not critical so we would like to exclude them from alers.

It would be nice to add some annotation to cronjob/job/deployment/daemonset/statefulset we don't want to get alerted, or add some regex or full name to exclude events when match.

      resources:
            - name: pod
              namespaces:
                include:
                  - ns1
                  - ns2
              events:
                - update
                - delete
                - create
                - error
             exclude:
               - db-dump
@mlewiarz mlewiarz added the enhancement New feature or request label Aug 29, 2020
@PrasadG193
Copy link
Collaborator

Hey @mlewiarz ,
It is possible to ignore notifications for specific resources by adding annotations to it.
Please check:
https://www.botkube.io/usage/#filter-events-using-annotations

@codenio
Copy link
Contributor

codenio commented Oct 2, 2020

can this be closed?

@mlewiarz
Copy link
Author

mlewiarz commented Oct 9, 2020

Yes, now I only have to find a way to pass annotation from to pod CronJob -> Job -> Pod

@mlewiarz mlewiarz closed this as completed Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants