mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB: Fix getting empty response when querying fields with retention policy (#63669)
Revert "InfluxDB: Send retention policy with InfluxQL queries if its been specified. (#62149)"
This reverts commit a5a85e0398
.
This commit is contained in:
parent
a0a2181e5a
commit
ffed779879
@ -403,10 +403,6 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
||||
params.db = this.database;
|
||||
}
|
||||
|
||||
if (options?.policy) {
|
||||
params.rp = options.policy;
|
||||
}
|
||||
|
||||
const { q } = data;
|
||||
|
||||
if (method === 'POST' && has(data, 'q')) {
|
||||
|
@ -11,8 +11,7 @@ const runExploreQuery = (
|
||||
): Promise<Array<{ text: string }>> => {
|
||||
const builder = new InfluxQueryBuilder(target, datasource.database);
|
||||
const q = builder.buildExploreQuery(type, withKey, withMeasurementFilter);
|
||||
const options = { policy: target.policy };
|
||||
return datasource.metricFindQuery(q, options);
|
||||
return datasource.metricFindQuery(q);
|
||||
};
|
||||
|
||||
export async function getAllPolicies(datasource: InfluxDatasource): Promise<string[]> {
|
||||
|
Loading…
Reference in New Issue
Block a user