diff --git a/public/app/plugins/datasource/cloudwatch/datasource.js b/public/app/plugins/datasource/cloudwatch/datasource.js index 61507dbfb06..d86e922bb50 100644 --- a/public/app/plugins/datasource/cloudwatch/datasource.js +++ b/public/app/plugins/datasource/cloudwatch/datasource.js @@ -176,7 +176,11 @@ function (angular, _, kbn) { /* load custom metrics definitions */ var self = this; $q.all( - _.map(datasource.jsonData.customMetricsAttributes, function(u) { + _.chain(datasource.jsonData.customMetricsAttributes) + .reject(function(u) { + return _.isEmpty(u); + }) + .map(function(u) { return $http({ method: 'GET', url: u }); }) ) diff --git a/public/app/plugins/datasource/cloudwatch/partials/config.html b/public/app/plugins/datasource/cloudwatch/partials/config.html index 668d817c905..6ec6c3b0e0c 100644 --- a/public/app/plugins/datasource/cloudwatch/partials/config.html +++ b/public/app/plugins/datasource/cloudwatch/partials/config.html @@ -43,7 +43,7 @@ Custom Metrics Attributes
  • - +