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

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 14818c99a9b branch-4.0: [Fix](metrics) Fix FE's incorrect prometheus 
metrics format  #57059 (#57083)
14818c99a9b is described below

commit 14818c99a9b546d75e500833ca2395410135db34
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Oct 17 15:10:57 2025 +0800

    branch-4.0: [Fix](metrics) Fix FE's incorrect prometheus metrics format  
#57059 (#57083)
    
    Cherry-picked from #57059
    
    Co-authored-by: bobhan1 <[email protected]>
---
 .../main/java/org/apache/doris/metric/PrometheusMetricVisitor.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java 
b/fe/fe-core/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
index 66712399159..f25c63339d3 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
@@ -209,9 +209,9 @@ public class PrometheusMetricVisitor extends MetricVisitor {
             .append(snapshot.get99thPercentile()).append("\n");
         
sb.append(fullName).append("{quantile=\"0.999\"").append(delimiter).append(fullTag).append("}
 ")
             .append(snapshot.get999thPercentile()).append("\n");
-        sb.append(fullName).append("_sum {").append(fullTag).append("} ")
+        sb.append(fullName).append("_sum{").append(fullTag).append("} ")
                 .append(histogram.getCount() * 
snapshot.getMean()).append("\n");
-        sb.append(fullName).append("_count {").append(fullTag).append("} ")
+        sb.append(fullName).append("_count{").append(fullTag).append("} ")
                 .append(histogram.getCount()).append("\n");
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to