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

Add option to exclude completed pods? #32

Open
apsega opened this issue Mar 18, 2020 · 1 comment
Open

Add option to exclude completed pods? #32

apsega opened this issue Mar 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@apsega
Copy link

apsega commented Mar 18, 2020

Hi,

We're facing an issue when we have lots of completed pods:

# kubectl get pods --all-namespaces | grep -i completed | wc -l
   11863

And kube-eagle struggles to iterate over that many objects and therefore Kubernetes control plane crashes:

Screenshot 2020-03-18 at 14 14 22

Is there a way to exclude pods in completed state?

@weeco
Copy link
Member

weeco commented Mar 18, 2020

Hi @apsega ,
as of now there's no such option. I'd draft this issue as feature request to exclude pods from scraping with specific conditions:

  • by state e. g. "completed, failed, ...."
  • by namespace
  • ...

This way it is a bit more generic and may help with slightly different use cases as well. PRs are welcome. I don't think I'll work on that in the near future.

@weeco weeco added the enhancement New feature or request label Mar 18, 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

2 participants