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
Fixes New metric for deployment revision #746 #747
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bvoss If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Instead of exposing specific annotations, I would advocate towards exposing all annotations like we do with Kubernetes labels. This has been raised in #574 before. The cardinality increase introduced through this metric could have a high impact on big clusters, thus I think making the metric optional and disabled by default is the way forward. @tariq1890 @bvoss @brancz what do you think? |
@mxinden @tariq1890 @brancz I understood, that the annotation and its value is essential for kubectl rollout --revision and so more likely part of the API and stable. So I thought it would be ok - in this special case - to expose this annotation value. Nevertheless the general annotation approach is also fine for me, if it's possible to configure a white-list for annotations to be contained in the metric. |
@@ -14,3 +14,4 @@ | |||
| kube_deployment_metadata_generation | Gauge | `deployment`=<deployment-name> <br> `namespace`=<deployment-namespace> | STABLE | | |||
| kube_deployment_labels | Gauge | `deployment`=<deployment-name> <br> `namespace`=<deployment-namespace> | STABLE | | |||
| kube_deployment_created | Gauge | `deployment`=<deployment-name> <br> `namespace`=<deployment-namespace> | STABLE | | |||
| kube_deployment_revision | Gauge | `deployment`=<deployment-name> <br> `namespace`=<deployment-namespace> | STABLE | |
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.
Do you have some docs that show that this annotation is indeed considered stable? I'm only asking because I wonder why this is not a real field.
@bvoss: PR needs rebase. 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. |
I think this can be closed since the kube annotations PR was merged. |
Thanks for the feature request and taking a stab at this @bvoss :). |
I think there was a distinction here. The value of the annotation was actually parsed and exposed as the metric's value. |
Add metric for deployment revision based on the annotation 'deployment.kubernetes.io/revision'