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
metrics: etcd_object_counts->apiserver_storage_object_counts(stable) #99785
Conversation
/assign @logicalhan |
/sig instrumentation api-machinery |
staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go
Outdated
Show resolved
Hide resolved
Thanks for the review @logicalhan ! All comments addressed. |
/retest |
staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go
Outdated
Show resolved
Hide resolved
/triage accepted |
Thanks. I've updated the commit message and also rebased on master. (It seems another stable metrics got merged before this one :D) |
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
/approve
/hold
- rename etcd_object_counts to apiserver_storage_object_counts CONTEXT kubernetes#98270 FIXES kubernetes#98270
/priority important-soon |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erain, logicalhan 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 |
kubernetes/kubernetes#99785 The PR says the new metric name will be apiserver_storage_object_counts, but on a running v1.21.14 control plane node, the metric is actually named apiserver_storage_ojects.
* Changes etcd_object_counts to apiserver_storage_objects kubernetes/kubernetes#99785 The PR says the new metric name will be apiserver_storage_object_counts, but on a running v1.21.14 control plane node, the metric is actually named apiserver_storage_ojects. * Fixes datasource uid value on EtcdOverview
…counts metric "etc_object_counts" is now deprecated upstream in favor of "apiserver_storage_objects" see https://github.com/kubernetes/apiserver/blob/464f2d738348f8048b8791f4c6a7bf51144c1ac7/pkg/storage/etcd3/metrics/metrics.go#L50 kubernetes/kubernetes#98270 kubernetes/kubernetes#99785 https://access.redhat.com/solutions/6969249
#261) Motivation: noticed when running soak tests that the `ACK Resource Count` graph was blank. After some digging, determined that the metric `etc_object_counts` is now deprecated upstream in favor of `apiserver_storage_objects`. See: - https://github.com/kubernetes/apiserver/blob/464f2d738348f8048b8791f4c6a7bf51144c1ac7/pkg/storage/etcd3/metrics/metrics.go#L50 - kubernetes/kubernetes#98270 - kubernetes/kubernetes#99785 - https://access.redhat.com/solutions/6969249 Before: ![image](https://user-images.githubusercontent.com/115744412/202563586-912f5428-dfb4-4e99-8ef4-45b32356d42d.png) After: ![image](https://user-images.githubusercontent.com/115744412/202563659-0f732fe2-4af9-46ff-a261-3758832df132.png) Description of changes: Change the default Grafana dashboard used to monitor ACK soak tests to use this new metric. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
What type of PR is this?
/kind feature
What this PR does / why we need it:
#98270 (comment)
Which issue(s) this PR fixes:
Fixes #98270
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: