mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
send timerange with metricFindQuery
This commit is contained in:
@ -46,6 +46,7 @@ export class PostgresQueryBuilder {
|
||||
buildValueQuery(column: string) {
|
||||
var query = 'SELECT DISTINCT quote_literal(' + column + ')';
|
||||
query += ' FROM ' + this.target.schema + '.' + this.target.table;
|
||||
query += ' WHERE $__timeFilter(' + this.target.timeColumn + ')';
|
||||
query += ' ORDER BY 1 LIMIT 100';
|
||||
return query;
|
||||
}
|
||||
|
Reference in New Issue
Block a user