Hi Community members,
Recently many users reported this issue after configuring an InfluxDB Data source, it says the message:
0 measurements found in new buckets
However, If login into the InfluxDB UI and check the bucket, there is 1 measurement with values as can be seen in the InfluxDB Data Explorer-Interface:
There is already a GitHub issue that contains multiple solutions and workaround:
opened 09:28AM - 11 May 23 UTC
closed 08:33PM - 22 Jun 23 UTC
datasource/InfluxDB
prio/high
triage/needs-confirmation
effort/medium
###
# What went wrong?
**What happened**:
I am trying to create a ne… w InfluxDB-Datasource in Grafana in the same way I created other InfluxDB-Datasources in the past. It seems like Grafana is able to connect to the bucket but doesn't find any measurements:
![image](https://github.com/grafana/grafana/assets/92976715/f92d312d-39ba-4b65-bbeb-b86630b0ad92)
However in the bucket there is 1 measurement with values as i can see in the InfluxDB Data Explorer-Interface:
![image](https://github.com/grafana/grafana/assets/92976715/222c1fea-92ee-4ad1-8ba8-9a9f3b6bcdae)
This only happens when trying to connect to newly created buckets in InfluxDB. I can add new Datasources which have older buckets as database and everything works as expected (all measurements are found)
I have allready tried to create a new API Token in InfluxDB with read/write-Permission to the bucket but it still doesn't work.
**What did you expect to happen**:
Grafana is able to connect to the datasource and is finding all measurements
###
# How do we reproduce it?
**Step 1**:
- Create a new bucket in InfluxDB
**Step 2**:
- Write Data into the new bucket
**Step 3**:
- Add a new InfluxDB-Datascource in Grafana which has the newly created bucket as database
**Step 4**:
- When clicking "Save & test" I get the message "datasource is working. 0 measurements found" allthough there are measurements in the bucket
###
# What Grafana version are you using?
v9.5.1
### User's Browser?
Google Chrome Version 112.0.5615.140
### Are Datasources involved?
InfluxDB OSS 2.1.0
I hope this helps anyone who may be having this problem