-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sqlproxyccl: do not report BackendDown metrics on throttle and routing errors #108914
sqlproxyccl: do not report BackendDown metrics on throttle and routing errors #108914
Conversation
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @darinpp and @jeffswenson)
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
…g errors Previously, we were reporting the backend_down metric on the following errors: - codeProxyRefusedConnection - codeParamsRoutingFailed - codeUnavailable These errors do not imply that the backend is down. We originally introduced this in cockroachdb#57431, and looking at the PR, it appears unintentional. This commit fixes that by not reporting the backend_down metric when the proxy returns such errors. Release note: None Epic: none Release justification: This fixes accuracy issues with SQL Proxy metrics.
8425683
to
72e174c
Compare
This commit renames codeBackendDown to codeBackendDialFailed to prevent confusions by developers. Note that we don't rename the metric here to avoid breaking downstream consumers. At the same time, we will remove the old codeBackendRefusedTLS code as it does not serve any purpose, and there wasn't a metric for it as well. Release note: None Epic: none
72e174c
to
95eb34d
Compare
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
TFTR! bors r=JeffSwenson,andy-kimball |
Build failed (retrying...): |
Build succeeded: |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 95eb34d to blathers/backport-release-23.1-108914: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.1.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
sqlproxyccl: do not report BackendDown metrics on throttle and routing errors
Previously, we were reporting the backend_down metric on the following errors:
These errors do not imply that the backend is down. We originally introduced
this in #57431, but looking at the PR, it appears unintentional. This commit
fixes that by not reporting the backend_down metric when the proxy returns
such errors.
Release note: None
Epic: none
sqlproxyccl: rename codeBackendDown to codeBackendDialFailed
This commit renames codeBackendDown to codeBackendDialFailed to prevent
confusions by developers. Note that we don't rename the metric here to avoid
breaking downstream consumers. At the same time, we will remove the old
codeBackendRefusedTLS code as it does not serve any purpose, and there wasn't
a metric for it as well.
Release note: None
Epic: none
Release justification: This fixes accuracy issues with SQL Proxy metrics.