Skip to content

[metrics] Add database and table labels for scanner metrics#565

Merged
leekeiabstraction merged 5 commits into
apache:mainfrom
charlesdong1991:issue-563
May 26, 2026
Merged

[metrics] Add database and table labels for scanner metrics#565
leekeiabstraction merged 5 commits into
apache:mainfrom
charlesdong1991:issue-563

Conversation

@charlesdong1991
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #563

Brief change log

Scanner metrics are emitted globally, a client process scanning more than one table aggregates every metric into a single
time series, with no way to attribute fetch latency, byte volume, or poll-timing to a specific table.

this PR adds new ScannerMetrics struct caches the scanner-metric handles with database and table labels.

Tests

API and Format

Documentation

@charlesdong1991
Copy link
Copy Markdown
Contributor Author

@fresh-borzoni @leekeiabstraction PTAL 🙏 thanks!

Copy link
Copy Markdown
Contributor

@leekeiabstraction leekeiabstraction left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the PR!

@leekeiabstraction leekeiabstraction merged commit 9eee500 into apache:main May 26, 2026
11 checks passed
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.

[metrics] Add database and table labels to scanner metrics

2 participants