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

Use kube-scheduler's metrics instead of kube-state-metrics' #815

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rexagod
Copy link
Contributor

@rexagod rexagod commented Jan 10, 2023

Use kube-scheduler's metrics instead of kube-state-metrics, as they are more precise.

Refer the links below for more details.


Currently I've removed metrics that used the container label since that is not exposed by the newer metrics. PLMK if we want to take a different approach instead.

rules/apps.libsonnet Outdated Show resolved Hide resolved
rules/apps.libsonnet Outdated Show resolved Hide resolved
rules/apps.libsonnet Outdated Show resolved Hide resolved
Copy link
Member

@paulfantom paulfantom left a comment

Choose a reason for hiding this comment

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

As far as I like this change I can see a problem with this in managed solutions (like EKS) where access to kube-scheduler is forbidden. In those cases alerts and dashboards which are based on kube-scheduler data won't be useful at all. Due to such an issue can we use OR statements instead of deprecating kube-state-metrics data? I think something like kube_pod_resource_request OR kube_pod_container_resource_request should do the trick.

@rexagod
Copy link
Contributor Author

rexagod commented Feb 14, 2023

Note to self: Revisit this issue once prometheus/prometheus#9624 is implemented.

@rexagod
Copy link
Contributor Author

rexagod commented Feb 14, 2023

Just wondering if there's a better (or any) way to format embedded PromQL expressions in *sonnet files? The existing tooling seems to ignore the PromQL expressions within such files.

@rexagod rexagod force-pushed the mon-2823 branch 2 times, most recently from 8102d0c to eb73d96 Compare March 11, 2024 23:13
@rexagod rexagod changed the title Use kube-scheduler's metrics instead of kube-state-metrics Use kube-scheduler's metrics instead of kube-state-metrics' Mar 12, 2024
Use kube-scheduler's metrics instead of kube-state-metrics, as they are more precise.

Refer the links below for more details.
* https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/1748-pod-resource-metrics?rgh-link-date=2022-10-07T13%3A34%3A39Z#expose-new-metrics
* kubernetes/kube-state-metrics#1849

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
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.

None yet

3 participants