code-editor: prometheus metrics autocomplete

This commit is contained in:
Alexander Zobnin
2017-08-09 10:58:00 +03:00
parent aa670244f1
commit 1c8c746956
3 changed files with 28 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ class PrometheusQueryCtrl extends QueryCtrl {
formats: any;
oldTarget: any;
suggestMetrics: any;
getMetricsAutocomplete: any;
linkToPrometheus: any;
/** @ngInject */
@@ -51,6 +52,10 @@ class PrometheusQueryCtrl extends QueryCtrl {
this.datasource.performSuggestQuery(query).then(callback);
};
this.getMetricsAutocomplete = (query) => {
return this.datasource.performSuggestQuery(query);
};
this.updateLink();
}