-
Notifications
You must be signed in to change notification settings - Fork 542
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 terminated watches metrics #2194
Conversation
|
Welcome @bouaouda-achraf! |
Hi @bouaouda-achraf. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Could you review it please? |
Please also change the PR's title to better reflect the changes we're doing here. |
@tosi3k thank you for your reviews, I fixed all your comments. |
- name: Watch connections terminated by the kube-apiserver | ||
query: sum(increase(apiserver_terminated_watchers_total[%v:])) by (resource) | ||
- name: Watch connections reinitialized by the kube-apiserver | ||
query: sum(increase(apiserver_watch_cache_initializations_total[%v:])) by (resource) |
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.
Could we split the second query into a separate measurement (but under the same {{if $ENABLE_TERMINATED_WATCHES_MEASUREMENT}}
branch) with different Identifier
and metricName
, say WatchCacheInitializations
and Watch Cache Initializations
, respectively?
Sorry for the late notice about this, I realized it just won't look nice in https://perf-dash.k8s.io/ after we enable it by default in our tests.
queries: | ||
- name: Watch connections terminated by the kube-apiserver | ||
query: sum(increase(apiserver_terminated_watchers_total[%v:])) by (resource) | ||
- name: Watch connections reinitialized by the kube-apiserver |
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.
Nit: let's shorten the description to just Watch cache reinitializations
.
Last minor ask - please squash the commits and we're good to go :). |
453cfc0
to
9c7dc9d
Compare
9c7dc9d
to
607e97a
Compare
@tosi3k commits squashed and forked branch rebased with the last commit. |
/ok-to-test Thanks! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bouaouda-achraf, marseel, tosi3k 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 |
/kind feature
This PR adds a new Prometheus-based measurement that counts the closed watchers.
Linked with #2054
/assign @marseel @wojtek-t