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

wuzhiguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ambari-metrics.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a39bb9  [AMBARI-25089] NIFI-Hosts dashboard does not show any metrics 
in Grafana (#48)
6a39bb9 is described below

commit 6a39bb9ec9774bc3ea24bc9c2ff9a179f9f9b035
Author: lucasbak <lucas.bakal...@gmail.com>
AuthorDate: Tue Oct 25 18:01:59 2022 +0200

    [AMBARI-25089] NIFI-Hosts dashboard does not show any metrics in Grafana 
(#48)
---
 ambari-metrics-grafana/ambari-metrics/datasource.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ambari-metrics-grafana/ambari-metrics/datasource.js 
b/ambari-metrics-grafana/ambari-metrics/datasource.js
index 70c3f56..145d4cf 100644
--- a/ambari-metrics-grafana/ambari-metrics/datasource.js
+++ b/ambari-metrics-grafana/ambari-metrics/datasource.js
@@ -292,8 +292,8 @@ define([
         var getAllHostData = function (target) {
           var instanceId = typeof target.templatedCluster == 'undefined' ? '' 
: '&instanceId=' + target.templatedCluster;
           var appId = target.app;
-          if ((appId === 'nifi' || appId === 'druid') && !instanceId) {
-            instanceId = "%"
+          if ((appId === 'nifi' || appId === 'druid') && (!instanceId || 
instanceId === '&instanceId=')) {
+            instanceId = "&instanceId=%"
           }
           var precision = target.precision === 'default' || typeof 
target.precision == 'undefined' ? '' : '&precision='
             + target.precision;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org
For additional commands, e-mail: commits-h...@ambari.apache.org

Reply via email to