|
|
@@ -14,12 +14,6 @@ function (angular, _, kbn) {
|
|
|
$scope.target.errors = validateTarget($scope.target);
|
|
|
$scope.aggregators = ['avg', 'sum', 'min', 'max', 'dev', 'zimsum', 'mimmin', 'mimmax'];
|
|
|
|
|
|
- $scope.datasource.performAggregatorsQuery().then(function(result) {
|
|
|
- if (result) {
|
|
|
- $scope.aggregators = result;
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
if (!$scope.target.aggregator) {
|
|
|
$scope.target.aggregator = 'sum';
|
|
|
}
|
|
|
@@ -27,6 +21,10 @@ function (angular, _, kbn) {
|
|
|
if (!$scope.target.downsampleAggregator) {
|
|
|
$scope.target.downsampleAggregator = 'avg';
|
|
|
}
|
|
|
+
|
|
|
+ $scope.datasource.getAggregators().then(function(aggs) {
|
|
|
+ $scope.aggregators = aggs;
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
$scope.targetBlur = function() {
|