Skip to content

[CORE-15272] dt: add basic test for client quota metrics#29457

Merged
IoannisRP merged 1 commit into
redpanda-data:devfrom
IoannisRP:CORE-15272/quota-metrics
Jan 30, 2026
Merged

[CORE-15272] dt: add basic test for client quota metrics#29457
IoannisRP merged 1 commit into
redpanda-data:devfrom
IoannisRP:CORE-15272/quota-metrics

Conversation

@IoannisRP

@IoannisRP IoannisRP commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Implements: CORE-15272

Add sanity dt test to verify existence of client quota metrics for all the quota rules/types

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v25.3.x
  • v25.2.x
  • v25.1.x

Release Notes

  • none

@IoannisRP IoannisRP self-assigned this Jan 29, 2026
@IoannisRP IoannisRP requested review from a team and pgellert January 29, 2026 10:30
@IoannisRP IoannisRP force-pushed the CORE-15272/quota-metrics branch from 1bacdec to 40d4bd6 Compare January 29, 2026 11:33
@IoannisRP IoannisRP marked this pull request as ready for review January 29, 2026 11:33
Copilot AI review requested due to automatic review settings January 29, 2026 11:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a ducktape test to verify that client quota metrics exist for all quota rules and types in Redpanda. The test ensures that metrics related to client quotas (throttle time and throughput) are properly exposed through the public metrics endpoint.

Changes:

  • Added a new test class QuotaMetricTest to validate the presence of client quota metrics
  • Implemented helper methods to retrieve metrics from Redpanda nodes
  • Added test coverage for all combinations of quota rules and quota types

Comment thread tests/rptest/tests/quota_management_test.py Outdated
Comment thread tests/rptest/tests/quota_management_test.py Outdated
pgellert
pgellert previously approved these changes Jan 29, 2026

@pgellert pgellert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good, just noted one simplification opportunity

)


class QuotaMetricTest(RedpandaTest):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's already a similar test in client_quota_test.py named test_client_quota_metrics. Could we merge these two / drop one of them / co-locate them to simplify?

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

CI test results

test results on build#79834
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
ScalingUpTest test_scaling_up_with_recovered_topic null integration https://buildkite.com/redpanda/redpanda/builds/79834#019c09a4-1e8d-4543-a167-ba5e01b000f3 FLAKY 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0163, p0=1.0000, reject_threshold=0.0100. adj_baseline=0.1000, p1=0.3487, trust_threshold=0.5000) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ScalingUpTest&test_method=test_scaling_up_with_recovered_topic

@IoannisRP

Copy link
Copy Markdown
Contributor Author

changes in force-push:

  • fixed typo

@IoannisRP IoannisRP force-pushed the CORE-15272/quota-metrics branch from c888692 to 913af8b Compare January 29, 2026 17:51
@IoannisRP

Copy link
Copy Markdown
Contributor Author

changes in force-push:

  • moved new test in cluster_quota_test.py

@IoannisRP IoannisRP enabled auto-merge January 29, 2026 17:52
@IoannisRP IoannisRP requested a review from pgellert January 29, 2026 17:52
@IoannisRP IoannisRP merged commit 181e428 into redpanda-data:dev Jan 30, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants