Cap / Limit number of objects ingested for native and Custom Resource Metrics #2622
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What would you like to be added:
KSM should have the ability to set an upper limit on number of objects ingested.
Why is this needed:
We observed an event where an autoscaler by accident created 10k+ ReplicaSets which KSM tried to report on. This caused KSM to run out of memory and we lost visibility into the cluster.
I know we can limit it already on the scraping end in Prometheus, this is just to avoid that ksm is running out of resources and to give another signal on what's going on in the cluster.
Describe the solution you'd like
kube_objects_watched{group="foo", kind="bar" version="baz"}
andkube_objects_watched_max
which shows the configuration limit to allow alerting if the threshold gets hit.Additional context
The text was updated successfully, but these errors were encountered: