Skip to content
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

fix(pageserver): categorize client error in basebackup metrics #9110

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

skyzh
Copy link
Member

@skyzh skyzh commented Sep 23, 2024

Problem

We separated client error from basebackup error log lines in #7523, but we didn't do anything for the metrics. In this patch, we fixed it.

ref #8970

Summary of changes

We use the same criteria as in log_query_error producing an info line (instead of error) for the metrics. We added a client_error category for the basebackup query time metrics.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

Signed-off-by: Alex Chi Z <chi@neon.tech>
@skyzh skyzh requested a review from a team as a code owner September 23, 2024 18:17
Copy link

github-actions bot commented Sep 23, 2024

4986 tests run: 4822 passed, 0 failed, 164 skipped (full report)


Flaky tests (4)

Postgres 17

Postgres 15

Postgres 14

Code coverage* (full report)

  • functions: 32.1% (7469 of 23243 functions)
  • lines: 50.0% (60205 of 120510 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
b9d98eb at 2024-09-24T16:39:27.732Z :recycle:

Signed-off-by: Alex Chi Z <chi@neon.tech>
@skyzh skyzh requested a review from problame September 24, 2024 14:21
Copy link
Contributor

@problame problame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After shipping this, the 4GS dashboard (and alerts? and SLO definition?) needs adjustements.

@skyzh skyzh merged commit 42e19e9 into main Sep 26, 2024
79 checks passed
@skyzh skyzh deleted the skyzh/basebackup-metrics branch September 26, 2024 15:38
bayandin pushed a commit that referenced this pull request Sep 26, 2024
We separated client error from basebackup error log lines in
#7523, but we didn't do
anything for the metrics. In this patch, we fixed it.

ref #8970

## Summary of changes

We use the same criteria as in `log_query_error` producing an info line
(instead of error) for the metrics. We added a `client_error` category
for the basebackup query time metrics.

---------

Signed-off-by: Alex Chi Z <chi@neon.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants