mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Some fixes related to OpenTSDB enhancements, #1250
This commit is contained in:
parent
8ed0df64c7
commit
5494be4493
@ -27,6 +27,7 @@ function (angular, _, kbn) {
|
|||||||
var qs = [];
|
var qs = [];
|
||||||
|
|
||||||
_.each(options.targets, function(target) {
|
_.each(options.targets, function(target) {
|
||||||
|
if (!target.metric) { return; }
|
||||||
qs.push(convertTargetToQuery(target, options));
|
qs.push(convertTargetToQuery(target, options));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
placeholder="metric name"
|
placeholder="metric name"
|
||||||
data-min-length=0 data-items=100
|
data-min-length=0 data-items=100
|
||||||
ng-model-onblur
|
ng-model-onblur
|
||||||
ng-blur="targetBlur()"
|
ng-change="targetBlur()"
|
||||||
>
|
>
|
||||||
<a bs-tooltip="target.errors.metric"
|
<a bs-tooltip="target.errors.metric"
|
||||||
style="color: rgb(229, 189, 28)"
|
style="color: rgb(229, 189, 28)"
|
||||||
|
@ -47,7 +47,7 @@ function (angular, _, kbn) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.suggestMetrics = function(query, callback) {
|
$scope.suggestMetrics = function(query, callback) {
|
||||||
$scope.datasource.metricFindQuery('metrics()')
|
$scope.datasource.metricFindQuery('metrics(' + query + ')')
|
||||||
.then($scope.getTextValues)
|
.then($scope.getTextValues)
|
||||||
.then(callback);
|
.then(callback);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user