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

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


The following commit(s) were added to refs/heads/master by this push:
     new 55f305789 [bugfix] fixed name error in monitoring template and improve 
NGQL protocol (#1931)
55f305789 is described below

commit 55f3057899bd978031159604cbaae417da28a7c0
Author: liutianyou <[email protected]>
AuthorDate: Wed May 8 16:07:16 2024 +0800

    [bugfix] fixed name error in monitoring template and improve NGQL protocol 
(#1931)
    
    Co-authored-by: tomsun28 <[email protected]>
---
 .../apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java | 1 +
 manager/src/main/resources/define/app-nebula_graph_cluster.yml          | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java
 
b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java
index 1449cf0e8..586193fdd 100644
--- 
a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java
+++ 
b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java
@@ -67,6 +67,7 @@ public class NgqlCollectImpl extends AbstractCollect {
         if (!nebulaTemplate.isInitSuccess()) {
             builder.setCode(CollectRep.Code.FAIL);
             builder.setMsg("Failed to connect Nebula Graph");
+            return;
         }
         stopWatch.stop();
         long responseTime = stopWatch.getTotalTimeMillis();
diff --git a/manager/src/main/resources/define/app-nebula_graph_cluster.yml 
b/manager/src/main/resources/define/app-nebula_graph_cluster.yml
index 9f7458c34..f47ea4be4 100644
--- a/manager/src/main/resources/define/app-nebula_graph_cluster.yml
+++ b/manager/src/main/resources/define/app-nebula_graph_cluster.yml
@@ -16,7 +16,7 @@
 # The monitoring type category:service-application service monitoring 
db-database monitoring custom-custom monitoring os-operating system monitoring 
mid-middleware
 category: db
 # The monitoring type eg: linux windows tomcat mysql aws...
-app: nebulagraph_cluster
+app: nebula_graph_cluster
 # The app api i18n name
 name:
   zh-CN: NebulaGraph集群


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

Reply via email to