mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
use metricColumn in query builder
This commit is contained in:
parent
6766028d7a
commit
83200c289a
@ -217,6 +217,10 @@ export default class PostgresQuery {
|
||||
query += selectText;
|
||||
}
|
||||
|
||||
if (this.target.metricColumn !== 'None') {
|
||||
query += "," + this.quoteIdentifier(this.target.metricColumn) + " AS metric";
|
||||
}
|
||||
|
||||
query += ' FROM ' + target.schema + '.' + target.table + ' WHERE ';
|
||||
var conditions = _.map(target.where, (tag, index) => {
|
||||
return this.renderTagCondition(tag, index, interpolate);
|
||||
|
Loading…
Reference in New Issue
Block a user