Fixed #191 - display host name for multiple metrics.

This commit is contained in:
Alexander Zobnin
2016-04-11 23:12:38 +03:00
parent eb9722aef0
commit 49ea07451f
3 changed files with 15 additions and 10 deletions

View File

@@ -151,13 +151,13 @@ export class ZabbixAPIDatasource {
var valueType = trendValueFunc ? trendValueFunc.params[0] : "avg";
getHistory = self.zabbixAPI.getTrend(items, from, to).then(function(history) {
return self.queryProcessor.handleTrends(history, addHostName, valueType);
return self.queryProcessor.handleTrends(history, items, addHostName, valueType);
});
} else {
// Use history
getHistory = self.zabbixCache.getHistory(items, from, to).then(function(history) {
return self.queryProcessor.handleHistory(history, addHostName);
return self.queryProcessor.handleHistory(history, items, addHostName);
});
}