Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[AMBARI-2491] Grafana: Fix for Storm Components and Storm Kafka Offse…
…t dashboards.
  • Loading branch information
ishanbha committed Nov 15, 2018
1 parent c8cb5d8 commit 70018585c8ad67f663c1092d8f03bffb6d6ec3a2
Showing 1 changed file with 4 additions and 4 deletions.
@@ -642,8 +642,8 @@ define([
//Templatized Dashboards for Storm Components
if (templateSrv.variables[0].query === "topologies" && templateSrv.variables[1] &&
templateSrv.variables[1].name === "component") {
var selectedTopology = templateSrv._values.topologies;
var selectedComponent = templateSrv._values.component;
var selectedTopology = templateSrv.index.topologies.options[0].value || "";
var selectedComponent = templateSrv.index.component.options[0] ? templateSrv.index.component.options[0].value : "";
metricsPromises.push(_.map(options.targets, function (target) {
target.sTopology = selectedTopology;
target.sComponent = selectedComponent;
@@ -655,8 +655,8 @@ define([
//Templatized Dashboard for Storm Kafka Offset
if (templateSrv.variables[0].query === "topologies" && templateSrv.variables[1] &&
templateSrv.variables[1].name === "topic") {
var selectedTopology = templateSrv._values.topologies;
var selectedTopic = templateSrv._values.topic;
var selectedTopology = templateSrv.index.topologies.options[0].value || "";
var selectedTopic = templateSrv.index.topic.options[0] ? templateSrv.index.topic.options[0].value : "";
metricsPromises.push(_.map(options.targets, function (target) {
target.sTopology = selectedTopology;
target.sTopic = selectedTopic;

0 comments on commit 7001858

Please sign in to comment.