cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Duffkess Helper I
Helper I

InfluxDB via REST API JSON

Hi, I'm trying to create a report based on InfluxDB Time Series data.

 

I can get data by quering it via rest api which returns a JSON like this:

 

{
  "results": [
    {
      "statement_id": 0,
      "series": [
        {
          "name": "check_local_disk",
          "columns": [
            "time",
            "crit",
            "hostname",
            "max",
            "metric",
            "service",
            "unit",
            "value",
            "warn"
          ],
          "values": [
            [
              "2019-02-19T15:27:09Z",
              24979072409.600002,
              "myhost",
              499581448192,
              "c:_",
              "Disk C",
              "bytes",
              79175041024,
              49958144819.200005
            ],
            [
              "2019-02-19T15:32:12Z",
              24979072409.600002,
              "otherhost",
              499581448192,
              "c:_",
              "Disk C",
              "bytes",
              79163670528,
              49958144819.200005
            ]
          ]
        }
      ]
    }
  ]
}

My Problem is that I dont know how to transform the Column Fields as Column Names of a table and add the values as rows.

Has somebody an idea on how to archive this?

Thanks.

1 REPLY 1
Community Support
Community Support

Re: InfluxDB via REST API JSON

Hi @Duffkess 

When you connect to InfluxD with Power BI Desktop, does it show JSON code as below in the Power BI Desktop?

Or conenct to this json file into Power BI Desktop?

 

In addition,

You could follow this article to use the OData REST API to access InfluxDB data.

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors