Skip to content

[metrics] Add per-error TabletServer request metrics - #4213

Open
fxbing wants to merge 1 commit into
apache:mainfrom
fxbing:feature/20260902-request-error-dimension
Open

[metrics] Add per-error TabletServer request metrics#4213
fxbing wants to merge 1 commit into
apache:mainfrom
fxbing:feature/20260902-request-error-dimension

Conversation

@fxbing

@fxbing fxbing commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #4212

Expose failed TabletServer RPC requests by error type while preserving the existing aggregate metric.

Brief change log

  • Add lazy fluss_tabletserver_request_error_errorsPerSecond metrics with request and error labels.
  • Record one event for each failed RPC response and document the metric.

Tests

  • MetricGroupTest, RequestsMetricsTest, NettyServerHandlerTest
  • spotless:check and compilation of fluss-common and fluss-rpc
  • Live /metrics smoke test was not run.

API and Format

No public API or storage-format changes.

Documentation

Updated the metrics reference.

Generative AI disclosure

  • Yes — OpenAI Codex and Anthropic Claude

- Preserve the existing aggregate request metric and API.\n- Lazily register error-scoped meters through MetricGroup.addGroup.\n- Cover the sendError wiring and document the new metric scope.
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 per-error TabletServer request metrics

1 participant