Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to retrieve data from InfluxDB to Power BI with "Blank Query".

I have tried to connect data source from InfluxDB to Power BI using InfluxDB API.
(https://docs.influxdata.com/influxdb/v1.8/tools/api/#query-http-endpoint)
InfluxDB Version is v1.8.
 
But I couldn't connect to the data.
I also tried to connect by using M language. Do you know correct code to connect the InfluxDB data source with Power Query?
or Do I have to connect with OData? Anyway, I don't want to use OData because end users need to install Python or Pylet in their local machine.
(https://github.com/Synergetic-Engineering/odata-influxdb)
 
When I tried to connect, got error message as follows
DataSource.Error: Web.Contents failed to get contents from "http://<IP Address>:8086/query" (400): Bad Request
Datails:
DataSourceKind=web
DataSourcePath=http://<IP Address>:8086/query
Url=http://<IP Address>:8086/query
 
This is my M language code:
= let
    url = "http://<IP Address>:8086/query",
    Source = Json.Document(Web.Contents(url,[
        Headers = [#"Content-Type" = "application/vnd.flux",
        #"Authorization" = "Token <userID>:<Password>",
        db="<DB_Name>",
        q="SELECT * FROM <Measurement_Name>"
            ]

        ]
))
in
#"Source"
Thank you for your help in advance.
 
Best regards,
ak
1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anonymous 
I was also think you can try using the web connector querying the influxdb api, seems not working.

 

With my research, I found power bi currently do not support connection with InfluxDB as refer to the Idea: Microsoft Idea · Open PowerBI to InfluxDB Databases. I can you should vote that idea hope power bi brings the feature ASAP.


Something might help: InfluxDB via REST API JSON - Microsoft Power BI Community

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-pazhen-msft
Community Support
Community Support

@Anonymous 
I was also think you can try using the web connector querying the influxdb api, seems not working.

 

With my research, I found power bi currently do not support connection with InfluxDB as refer to the Idea: Microsoft Idea · Open PowerBI to InfluxDB Databases. I can you should vote that idea hope power bi brings the feature ASAP.


Something might help: InfluxDB via REST API JSON - Microsoft Power BI Community

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors