Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
Signed-off-by: shuming.li <[email protected]>
  • Loading branch information
LiShuMing committed Dec 26, 2024
1 parent 166a00f commit c5446ae
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions fe/fe-core/src/test/java/com/starrocks/metric/MetricsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,17 @@ public void testJsonHistogramMetrics1() {
String output = visitor.build();
List<String> metricNames = Arrays.asList(
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.75\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.95\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.98\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.99\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.999\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration_sum\",\"k1\":\"v1\",\"k2\":\"v2\"},\"unit\":\"milliseconds\",\"value\":0" +
".0},\n" ,
".0},\n",
"{\"tags\":{\"metric\":\"sr_duration_count\",\"k1\":\"v1\",\"k2\":\"v2\"},\"unit\":\"nounit\",\"value\":0}"
);
for (String metricName : metricNames) {
Expand All @@ -201,17 +201,17 @@ public void testJsonHistogramMetrics2() {
String output = visitor.build();
List<String> metricNames = Arrays.asList(
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.75\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.95\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.98\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.99\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration\",\"k1\":\"v1\",\"k2\":\"v2\",\"quantile\":\"0.999\"}," +
"\"unit\":\"milliseconds\",\"value\":0.0},\n" ,
"\"unit\":\"milliseconds\",\"value\":0.0},\n",
"{\"tags\":{\"metric\":\"sr_duration_sum\",\"k1\":\"v1\",\"k2\":\"v2\"},\"unit\":\"milliseconds\",\"value\":0" +
".0},\n" ,
".0},\n",
"{\"tags\":{\"metric\":\"sr_duration_count\",\"k1\":\"v1\",\"k2\":\"v2\"},\"unit\":\"nounit\",\"value\":0}"
);
for (String metricName : metricNames) {
Expand Down

0 comments on commit c5446ae

Please sign in to comment.