diff --git a/public/app/plugins/datasource/influxdb/datasource.ts b/public/app/plugins/datasource/influxdb/datasource.ts index 5e7e77d2e1c..05469031b67 100644 --- a/public/app/plugins/datasource/influxdb/datasource.ts +++ b/public/app/plugins/datasource/influxdb/datasource.ts @@ -73,7 +73,14 @@ export default class InfluxDatasource extends DataSourceWithBackend): Observable { if (this.isFlux) { - return super.query(request); + // for not-flux queries we call `this.classicQuery`, and that + // handles the is-hidden situation. + // for the flux-case, we do the filtering here + const filteredRequest = { + ...request, + targets: request.targets.filter((t) => t.hide !== true), + }; + return super.query(filteredRequest); } // Fallback to classic query support