-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Collect PodDisruptionBudget metrics #3111
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3111 +/- ##
==========================================
- Coverage 84.83% 81.86% -2.97%
==========================================
Files 681 4 -677
Lines 35675 353 -35322
Branches 4285 68 -4217
==========================================
- Hits 30265 289 -29976
+ Misses 4153 44 -4109
+ Partials 1257 20 -1237 |
Do you have a rough estimate of when this feature might make it into an agent release? We're trying to weigh options for using a custom solution or waiting for native integration. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the collection, two comments on the metadata
kubernetes_state/metadata.csv
Outdated
kubernetes_state.pdb.pods_desired,gauge,,,,Minimum desired number of healthy pods,0,kubernetes,k8s_state.pdb.pods_desired | ||
kubernetes_state.pdb.disruptions_allowed,gauge,,,,Number of pod disruptions that are currently allowed,0,kubernetes,k8s_state.pdb.disruptions_allowed | ||
kubernetes_state.pdb.pods_healthy,gauge,,,,Current number of healthy pods,0,kubernetes,k8s_state.pdb.pods_healthy | ||
kubernetes_state.pdb.pods,gauge,,,,Total number of pods counted by this disruption budget,0,kubernetes,k8s_state.pdb.pods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to rename it .pdb.pods_total
for consistency with the other gauges, and being more explicit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I concur as it would also be consistent with what one sees when using kubectl describe pdb ...
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@bgeesaman This should be in 6.10. Our target date for this release is week 9. |
What does this PR do?
Collect the following gauges reporting information about PodDisruptionBudget objects:
Motivation
Allow tracking PDB information.
Review checklist
no-changelog
label attachedAdditional Notes
Anything else we should know when reviewing?