ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avija...@apache.org
Subject [ambari] branch branch-2.7 updated: AMBARI-24403 grafana is not showing any datapoints if the queue name contains special characters (#1958)
Date Fri, 03 Aug 2018 16:48:06 GMT
This is an automated email from the ASF dual-hosted git repository.

avijayan pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new a822a36  AMBARI-24403 grafana is not showing any datapoints if the queue name contains
special characters (#1958)
a822a36 is described below

commit a822a365c35b51146f8d08b15180bb7ccd6a5979
Author: Akhil S Naik <asnaik@hortonworks.com>
AuthorDate: Fri Aug 3 22:18:04 2018 +0530

    AMBARI-24403 grafana is not showing any datapoints if the queue name contains special
characters (#1958)
---
 ambari-metrics/ambari-metrics-grafana/ambari-metrics/datasource.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-metrics/ambari-metrics-grafana/ambari-metrics/datasource.js b/ambari-metrics/ambari-metrics-grafana/ambari-metrics/datasource.js
index 65b834b..e7cd850 100644
--- a/ambari-metrics/ambari-metrics-grafana/ambari-metrics/datasource.js
+++ b/ambari-metrics/ambari-metrics-grafana/ambari-metrics/datasource.js
@@ -284,7 +284,7 @@ define([
             var metricAggregator = target.aggregator === "none" ? '' : '._' + target.aggregator;
             var metricTransform = !target.transform || target.transform === "none" ? '' :
'._' + target.transform;
             var seriesAggregator = !target.seriesAggregator || target.seriesAggregator ===
"none" ? '' : '&seriesAggregateFunction=' + target.seriesAggregator;
-            return self.doAmbariRequest({ url: '/ws/v1/timeline/metrics?metricNames=' + target.queue
+ metricTransform
+            return self.doAmbariRequest({ url: '/ws/v1/timeline/metrics?metricNames=' + encodeURIComponent(target.queue)
+ metricTransform
               + metricAggregator + '&appId=resourcemanager' + instanceId + '&startTime='
+ from +
               '&endTime=' + to + precision + seriesAggregator }).then(
               getMetricsData(target)


Mime
View raw message