-
Notifications
You must be signed in to change notification settings - Fork 176
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 dataSource label to pvcs created #128
Conversation
/assign @gnufied |
I was unsure too but until kubernetes-csi/external-provisioner#792 it seems like there was no user of the metrics exposed in this package |
Let's check with sig-instrumentation whether this will break existing metric. |
a Kubernetes blog says that:
It uses registration from github.com/prometheus, which does not allow setting of stability level, so I think it's a stable metric: sig-storage-lib-external-provisioner/controller/metrics/metrics.go Lines 74 to 80 in 5fd51cf
|
@jsafrane from the blog -
Having said that, there's also a note on deprecating metrics in case a label needs to be added:
Do we want to consider deprecating the existing metrics and introducing new ones? The bonus is that we can potentially move to the |
Hi @logicalhan Can you please comment on this? Are these PVC/PV related metrics alpha or stable? |
Yes, deprecating the old metric + introducing a new one is IMO the right way forward. |
The stability guarantees that we have for Kubernetes only apply to k/k since the static analysis tools that make sure metrics don't change are only run there. You could reuse that same framework here, but that would mean updating all your metrics to be created by Going back to this PR, since you are not reusing the stability framework here, I would expect all the metrics to be considered |
@dgrisonnet thank you for the info! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, RaunakShah 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 |
Follow up to kubernetes-csi/external-provisioner#792
This PR adds a label to the existing metrics to determine the data source of the PVC being monitored
Testing