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

Add counters for commands processed through the libpq page service API #8089

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

hlinnaka
Copy link
Contributor

I was looking for metrics on how many computes are still using protocol version 1 and 2. This provides counters for that as "pagestream" and "pagestream_v2" commands, but also all the other commands. The new metrics are global for the whole pageserver instance rather than per-tenant, so the additional metrics bloat should be fairly small.

@hlinnaka hlinnaka requested a review from a team as a code owner June 18, 2024 12:05
@hlinnaka hlinnaka requested a review from problame June 18, 2024 12:05
@hlinnaka hlinnaka changed the title Add counters commands processed through the libpq page service API Add counters for commands processed through the libpq page service API Jun 18, 2024
@hlinnaka hlinnaka force-pushed the add-compute-command-metrics branch 2 times, most recently from 95b5814 to 1a75651 Compare June 18, 2024 12:12
Copy link

github-actions bot commented Jun 18, 2024

2935 tests run: 2818 passed, 0 failed, 117 skipped (full report)


Flaky tests (4)

Postgres 16

Postgres 14

Code coverage* (full report)

  • functions: 32.8% (6899 of 21021 functions)
  • lines: 50.3% (53907 of 107227 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
2e7b2f9 at 2024-06-26T17:02:27.778Z :recycle:

pageserver/src/metrics.rs Outdated Show resolved Hide resolved
I was looking for metrics on how many computes are still using
protocol version 1 and 2. This provides counters for that as
"pagestream" and "pagestream_v2" commands, but also all the other
commands. The new metrics are global for the whole pageserver instance
rather than per-tenant, so the additional metrics bloat should be
fairly small.
@hlinnaka hlinnaka force-pushed the add-compute-command-metrics branch from 1a75651 to fac383b Compare June 25, 2024 18:09
@hlinnaka hlinnaka merged commit 5b87180 into main Jun 26, 2024
65 checks passed
@hlinnaka hlinnaka deleted the add-compute-command-metrics branch June 26, 2024 16:53
conradludgate pushed a commit that referenced this pull request Jun 27, 2024
#8089)

I was looking for metrics on how many computes are still using protocol
version 1 and 2. This provides counters for that as "pagestream" and
"pagestream_v2" commands, but also all the other commands. The new
metrics are global for the whole pageserver instance rather than
per-tenant, so the additional metrics bloat should be fairly small.
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