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

[kv store] add metrics #21385

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phoenix-o
Copy link
Contributor

Description

bigtable get metrics


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 28, 2025 15:34 — with GitHub Actions Inactive
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 28, 2025 15:35 — with GitHub Actions Inactive
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 28, 2025 15:37 — with GitHub Actions Inactive
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 28, 2025 15:37 — with GitHub Actions Inactive
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 28, 2025 15:46 — with GitHub Actions Inactive
@phoenix-o phoenix-o requested a review from emmazzz February 28, 2025 17:42
@phoenix-o phoenix-o marked this pull request as ready for review February 28, 2025 17:42
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 28, 2025 17:42 — with GitHub Actions Inactive
let num_keys_requested = keys.len();
let result = self.multi_get_internal(table_name, keys).await;
let labels = [&self.client_name, table_name];
match &self.metrics {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think having metrics in multi_get labeled by table is very useful. But I wonder if it would be useful to all group by method because we have multiple methods that may hit the same table, like get_latest_object and get_objects and it would be useful to know if their metrics are somehow different.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR only covers multi_get, and there is only one method per column family.
reversed_scan can be added as followup.
Just curious, why the indexer needs to rely on the KV store for get_latest_object call?

Copy link

vercel bot commented Mar 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 2, 2025 7:18pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Mar 2, 2025 7:18pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Mar 2, 2025 7:18pm

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