You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2019/12/02 09:31:38 UTC

[incubator-doris] branch master updated: Make node info metrics available on all FE node (#2353)

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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new d90995c  Make node info metrics available on all FE node (#2353)
d90995c is described below

commit d90995c410d06dfaf6dbc6a13bc63695cf5b99b1
Author: Mingyu Chen <mo...@163.com>
AuthorDate: Mon Dec 2 17:31:32 2019 +0800

    Make node info metrics available on all FE node (#2353)
    
    Previously, only Master FE has node info metrics to indicate which node is alive.
    But this info should be available on every FE, so that the monitor system
    can get all metrics from any FE.
---
 fe/src/main/java/org/apache/doris/metric/MetricRepo.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/fe/src/main/java/org/apache/doris/metric/MetricRepo.java b/fe/src/main/java/org/apache/doris/metric/MetricRepo.java
index 9908a1c..68d1cf8 100644
--- a/fe/src/main/java/org/apache/doris/metric/MetricRepo.java
+++ b/fe/src/main/java/org/apache/doris/metric/MetricRepo.java
@@ -293,10 +293,8 @@ public final class MetricRepo {
             visitor.visitHistogram(sb, entry.getKey(), entry.getValue());
         }
         
-        // master info
-        if (Catalog.getInstance().isMaster()) {
-            visitor.getNodeInfo(sb);
-        }
+        // node info
+        visitor.getNodeInfo(sb);
 
         return sb.toString();
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org