mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(elasticsearch): added new templating all format and muli format named , also added automatic setting of correct all and multi format depending on data source, closes #2696
This commit is contained in:
@@ -233,6 +233,9 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes
|
||||
ElasticDatasource.prototype.metricFindQuery = function(query) {
|
||||
query = templateSrv.replace(query);
|
||||
query = angular.fromJson(query);
|
||||
if (!query) {
|
||||
return $q.when([]);
|
||||
}
|
||||
|
||||
if (query.find === 'fields') {
|
||||
return this.getFields(query);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"annotations": "app/plugins/datasource/elasticsearch/partials/annotations.editor.html"
|
||||
},
|
||||
|
||||
"defaultMatchFormat": "lucene",
|
||||
"annotations": true,
|
||||
"metrics": true
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"config": "app/plugins/datasource/graphite/partials/config.html"
|
||||
},
|
||||
|
||||
"defaultMatchFormat": "glob",
|
||||
"metrics": true,
|
||||
"annotations": true
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"config": "app/plugins/datasource/influxdb/partials/config.html"
|
||||
},
|
||||
|
||||
"defaultMatchFormat": "regex values",
|
||||
"metrics": true,
|
||||
"annotations": true
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"config": "app/plugins/datasource/influxdb_08/partials/config.html"
|
||||
},
|
||||
|
||||
"defaultMatchFormat": "regex values",
|
||||
"metrics": true,
|
||||
"annotations": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user