-
Notifications
You must be signed in to change notification settings - Fork 669
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 Support For Prometheus Metrics #348
Comments
The scheduler can run as a long lived pod with the |
/assign |
@seanmalloy any particular metrics in mind? I can quickly think of:
|
@ingvagabund yep that is pretty much it. See below for some additional details. I'm open to suggestions. Metrics
The metric names can be changed. There is probably some k8s best practice for naming Prometheus metrics. We should follow those guidelines to determine the names of the metrics. LabelsThe
The
|
One thing I forgot... We need a separate metric or maybe a label to differentiate when using |
With |
@ingvagabund after thinking about it I believe you are correct. I edited the original description to remove the requirement of collecting metrics when the |
@farah I see that this issue is currently assigned to you. I'm just checking in to see if you have any questions or need any assistance. We are trying to complete this feature as part of the descheduler v0.20.0 release which should be sometime in December. Thanks! |
👍 for this feature. @seanmalloy I see v0.20.0 was released 6 days ago but didn't see mentions of prometheus metrics collection in the changelog. Is this feature still in the works and do you have an estimate on ETA? |
This feature was not implemented for v0.20.0. Maybe for the v0.21.0 release. For sure I'm hoping sometime in 2021. |
Is there currently any PRs open for this? The last activity was a couple months ago so it may be safe to assume this is open for anyone interested in contributing! |
Correct. Basically we need someone to volunteer to write the code to implement this feature. It's on my extended todo list, but I don't have time to do this right now. So not assigning myself at the moment. /help |
@seanmalloy: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
A good first step for implementation would be adding some of these metrics to |
WIP PR for discussion: #505 |
This feature will ship with descheduler v0.21.0. |
Is your feature request related to a problem? Please describe.
I'd like to monitor the descheduler using Prometheus metrics. Metrics should only be collected when run without the
--dry-run
CLI option.Describe the solution you'd like
Add an optional configuration option(CLI option?) to enable exposing Prometheus metrics. At this point in time I have not given much thought to exactly which metrics and labels the descheduler would expose.
Describe alternatives you've considered
I have considered using the descheduler logs with log aggregation software for monitoring the descheduler. I also considered using the k8s events generated by the descheduler in combination with eventrouter. The eventrouter does provide some simple Prometheus metrics for events that it collects.
What version of descheduler are you using?
descheduler version: v0.18.0
Additional context
Currently the descheduler is run as a
Job
orCronJob
this makes it difficult for Prometheus to scrape metrics from the descheduler pod because it is not long lived. One option is to have descheduler push metrics using the Prometheus pushgateway.The text was updated successfully, but these errors were encountered: