Fixed text metric query.
This commit is contained in:
@@ -193,12 +193,9 @@ function (angular, _, dateMath, utils, metricFunctions) {
|
|||||||
else if (target.mode === 2) {
|
else if (target.mode === 2) {
|
||||||
|
|
||||||
// Find items by item names and perform queries
|
// Find items by item names and perform queries
|
||||||
return this.zabbixAPI.itemFindQuery(groups, hosts, apps, "text")
|
return self.queryProcessor.build(groupFilter, hostFilter, appFilter, itemFilter)
|
||||||
.then(function (items) {
|
.then(function(items) {
|
||||||
items = _.filter(items, function (item) {
|
return self.zabbixCache.getHistory(items, from, to).then(function(history) {
|
||||||
return _.contains(itemnames, zabbixHelperSrv.expandItemName(item));
|
|
||||||
});
|
|
||||||
return self.zabbixAPI.getHistory(items, from, to).then(function(history) {
|
|
||||||
return {
|
return {
|
||||||
target: target.item.name,
|
target: target.item.name,
|
||||||
datapoints: _.map(history, function (p) {
|
datapoints: _.map(history, function (p) {
|
||||||
|
|||||||
Reference in New Issue
Block a user