Merge branch 'cache-service' into grafana-3.0

This commit is contained in:
Alexander Zobnin
2016-02-01 13:50:44 +03:00
3 changed files with 19 additions and 16 deletions

View File

@@ -295,14 +295,14 @@ function (angular, _, dateMath, utils, metricFunctions) {
// Get items
if (parts.length === 4) {
//var items = this.queryProcessor.filterItems(template.host, template.app, true);
return this.queryProcessor.filterItems(template.host, template.app, true)
return this.queryProcessor.filterItems(template.group, template.host, template.app, true)
.then(function(items) {
return _.map(items, formatMetric);
});
}
// Get applications
else if (parts.length === 3) {
return this.queryProcessor.filterApplications(template.host)
return this.queryProcessor.filterApplications(template.group, template.host)
.then(function(apps) {
return _.map(apps, formatMetric);
});