InfluxDB measurements dropdown in QueryBuilder poor performance #65344
Labels
datasource/InfluxDB
needs investigation
for unconfirmed bugs. use type/bug for confirmed bugs, even if they "need" more investigating
prio/medium
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
triage/needs-confirmation
used for OSS triage rotation - reported issue needs to be reproduced
What happened:
When using the InfluxDB Query builder, both in the Explore view and when building a dashboard panel, the
measurement
selector (FROM <retention policy>.<measurement>...
) takes a long time to complete for moderate amounts of measurements.More context:
https://{public InfluxCloud V2 endpoint}:443
show measurements
in the raw query editor returns quickly), which is why I believe the issue to be on Grafana's side instead of InfluxCloudWhat you expected to happen:
The
measurement
dropdown menu should be displayed in a similar time that it takes to runshow measurements
on the databaseHow to reproduce it (as minimally and precisely as possible):
I was able to replicate the connection issue on a dockerized Grafana running locally, outside of our production setup, but only to an InfluxCloud V2 bucket + DBRP setup as described above. Here are minimal replication instructions nonetheless
test
henceforth)test
bucket + All Access DBRP. This is only to replicate in testing, so I haven't scoped out ideal permissions)influx v1 dbrp create --db testdbrp --rp 30d --bucket-id <test bucket ID> --host https://<your public endpoint> --token '<your token>'
)grafana/grafana:9.4.7
), and add a new InfluxDB datasource as detailed abovevalue1
, ...,value70
Anything else we need to know?:
I did go through the logs in DEBUG mode, and couldn't find any difference between a quick dropdown display on a local InfluxDB V2 database and its very long counterpart on the InfluxCloud database.
Environment:
grafana/grafana:9.3.0
andgrafana/grafana:9.4.7
Thanks for reading through, and please reach out if there's any additional information I can provide to help in diagnosing the issue !
The text was updated successfully, but these errors were encountered: