Skip to content

[Studio] feat: support semantic metric queries - #766

Merged
lizhimins merged 1 commit into
apache:rocketmq-studiofrom
yx9o:dev-080210
Aug 3, 2026
Merged

[Studio] feat: support semantic metric queries#766
lizhimins merged 1 commit into
apache:rocketmq-studiofrom
yx9o:dev-080210

Conversation

@yx9o

@yx9o yx9o commented Aug 2, 2026

Copy link
Copy Markdown

What is the purpose of the change

Clients currently need to extract and submit version-specific PromQL expressions from metric profiles.

This change allows clients to query metrics using profileId and semanticMetric, with the server resolving the corresponding PromQL while preserving raw PromQL query compatibility.

Brief changelog

  • Add profile-based semantic metric selection to the metrics query API
  • Resolve RocketMQ 4.x and 5.x semantic metrics to version-specific PromQL
  • Preserve existing raw PromQL queries
  • Reject incomplete or ambiguous metric selections
  • Add service and controller regression tests

Verifying this change

  • cd server && mvn -q -Dtest=MetricsControllerTest,MetricsServiceTest,MetricProfileServiceTest,PrometheusMetricsSourceTest test
  • cd server && mvn -q test
  • cd server && mvn -q -DskipTests package
  • cd server && mvn -q -DskipTests checkstyle:check

@lizhimins
lizhimins merged commit 3fcb342 into apache:rocketmq-studio Aug 3, 2026
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