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

pageserver: add metric pageserver_secondary_resident_physical_size #8204

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Jun 28, 2024

Problem

We lack visibility of how much local disk space is used by secondary tenant locations

Close: #8181

Summary of changes

  • Add pageserver_secondary_resident_physical_size, tagged by tenant
  • Register & de-register label sets from SecondaryTenant
  • Add+use wrappers in SecondaryDetail that update metrics when adding+removing layers/timelines

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

@jcsp jcsp added c/storage/pageserver Component: storage: pageserver a/tech_debt Area: related to tech debt labels Jun 28, 2024
@jcsp jcsp force-pushed the jcsp/issue-8181-secondary-metric branch from 45bebde to 53e2381 Compare June 28, 2024 15:38
Copy link

github-actions bot commented Jun 28, 2024

2946 tests run: 2829 passed, 0 failed, 117 skipped (full report)


Code coverage* (full report)

  • functions: 32.7% (6910 of 21144 functions)
  • lines: 50.0% (54191 of 108294 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
57e83ec at 2024-07-01T09:03:12.622Z :recycle:

@jcsp jcsp force-pushed the jcsp/issue-8181-secondary-metric branch from 53e2381 to 981bc9b Compare June 28, 2024 17:02
@jcsp jcsp marked this pull request as ready for review June 28, 2024 17:02
@jcsp jcsp requested a review from a team as a code owner June 28, 2024 17:02
@jcsp jcsp requested a review from arpad-m June 28, 2024 17:02
@jcsp jcsp merged commit aea5cfe into main Jul 1, 2024
64 checks passed
@jcsp jcsp deleted the jcsp/issue-8181-secondary-metric branch July 1, 2024 11:48
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8204)

## Problem

We lack visibility of how much local disk space is used by secondary
tenant locations

Close: #8181

## Summary of changes

- Add `pageserver_secondary_resident_physical_size`, tagged by tenant
- Register & de-register label sets from SecondaryTenant
- Add+use wrappers in SecondaryDetail that update metrics when
adding+removing layers/timelines
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8204)

## Problem

We lack visibility of how much local disk space is used by secondary
tenant locations

Close: #8181

## Summary of changes

- Add `pageserver_secondary_resident_physical_size`, tagged by tenant
- Register & de-register label sets from SecondaryTenant
- Add+use wrappers in SecondaryDetail that update metrics when
adding+removing layers/timelines
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8204)

## Problem

We lack visibility of how much local disk space is used by secondary
tenant locations

Close: #8181

## Summary of changes

- Add `pageserver_secondary_resident_physical_size`, tagged by tenant
- Register & de-register label sets from SecondaryTenant
- Add+use wrappers in SecondaryDetail that update metrics when
adding+removing layers/timelines
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8204)

## Problem

We lack visibility of how much local disk space is used by secondary
tenant locations

Close: #8181

## Summary of changes

- Add `pageserver_secondary_resident_physical_size`, tagged by tenant
- Register & de-register label sets from SecondaryTenant
- Add+use wrappers in SecondaryDetail that update metrics when
adding+removing layers/timelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/tech_debt Area: related to tech debt c/storage/pageserver Component: storage: pageserver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pageserver: secondary mode equivalent of resident size
2 participants