mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
code-editor: prometheus metrics autocomplete
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user