You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2025/01/22 09:51:16 UTC

(skywalking) branch master updated: BaseLine proto: Add query baseline supported metrics names. (#13005)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new 5aaf8326cd BaseLine proto: Add query baseline supported metrics names. (#13005)
5aaf8326cd is described below

commit 5aaf8326cdd831b75ec7f3707c39e12655ffdd30
Author: Wan Kai <wa...@foxmail.com>
AuthorDate: Wed Jan 22 17:51:06 2025 +0800

    BaseLine proto: Add query baseline supported metrics names. (#13005)
---
 docs/en/changes/changes.md                                | 1 +
 oap-server/metrics-baseline/src/main/proto/baseline.proto | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md
index ae7c105143..0a65118fd2 100644
--- a/docs/en/changes/changes.md
+++ b/docs/en/changes/changes.md
@@ -65,6 +65,7 @@
 * OAP self observability: Add JVM heap and direct memory used metrics.
 * OAP self observability: Add watermark circuit break/recover metrics.
 * Add Baseline module for support alarm module query baseline data.
+* BaseLine: Support query baseline metrics names.
 
 #### UI
 
diff --git a/oap-server/metrics-baseline/src/main/proto/baseline.proto b/oap-server/metrics-baseline/src/main/proto/baseline.proto
index 3f24a27a4a..0e183c6986 100644
--- a/oap-server/metrics-baseline/src/main/proto/baseline.proto
+++ b/oap-server/metrics-baseline/src/main/proto/baseline.proto
@@ -19,14 +19,22 @@
 syntax = "proto3";
 package skywalking.baseline.v3;
 
+import "google/protobuf/empty.proto";
+
 option java_multiple_files = true;
 option java_package = "org.apache.skywalking.apm.baseline.v3";
 
 service AlarmBaselineService {
+    // Query the supported metrics names.
+    rpc querySupportedMetricsNames(google.protobuf.Empty) returns (AlarmBaselineMetricsNames);
     // Query the predicted metrics of the given service.
     rpc queryPredictedMetrics(AlarmBaselineRequest) returns (AlarmBaselineResponse);
 }
 
+message AlarmBaselineMetricsNames {
+    repeated string metricNames = 1;
+}
+
 // The request of the predicted metrics query.
 message AlarmBaselineRequest {
     // The request service metrics names.