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 deployment status instead of pod status #89

Merged
merged 1 commit into from
May 9, 2023

Conversation

stehessel
Copy link
Contributor

Use kube_deployment_status_replicas_ready to more accurately track the SLI in cases the pod status is not defined - for example deployment upgrades. Note that in most cases both metrics yield identical results.

@stehessel stehessel requested a review from a team as a code owner May 5, 2023 22:23
@stehessel stehessel requested a review from 0x656b694d May 5, 2023 22:23
Copy link

@ivan-degtiarenko ivan-degtiarenko left a comment

Choose a reason for hiding this comment

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

LGTM! Quick question - when wouldn't they yield identical results considering we have 1 replica?

@stehessel
Copy link
Contributor Author

Michael pointed out that there can be a difference in some cases. I think one example would be if the deployment scales down the pods, then there is no pod status metric, but the deployment status metric would show zero.

@stehessel stehessel merged commit 49356d8 into master May 9, 2023
1 check passed
@stehessel stehessel deleted the kube-deployment-status branch May 9, 2023 17:25
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

2 participants