grafana / influxdb-flux-datasource

Grafana datasource plugin for Flux (InfluxDB)
Apache License 2.0
51 stars 21 forks source link

Need help setting up flux-datasource #115

Closed MoritzLaut closed 4 years ago

MoritzLaut commented 4 years ago

my setup: Grafana: v7.0.3 InfluxDB: 1.8

Hey,

i want to configure a flux-datasource in grafana but getting an error. I tried to follow this introductions (https://grafana.com/grafana/plugins/grafana-influxdb-flux-datasource) but failed :)

https://xxx.xxx.com:8086/api/v2/orgs --> HTTP 404

how can i find my org-id?

What data is required for setting up the flux-datasource?

image

best regards moritz

Jordan-prog commented 4 years ago

In order to find the proper URL, you will need to get your org-id. This can be done using a query similar to below:

https://influxdb.company.com:9999/api/v2/orgs

Embedded in this JSON response, you will find an array of all organizations, with two fields (shown below)

  "id": "059b46a59abab000",
  "name": "grafana",

Let us know if you have any luck I was getting the same error in Influx 2.0 beta

coussej commented 4 years ago

The above is for influx 2.0. How to find this for 1.8?

CharlesGodwin commented 4 years ago

@MoritzLaut Have any luck getting this set up? I'd really like to add a couple of FLUX scripts to my dashboard but have the same 1.8 problem.

ryantxu commented 4 years ago

flux support was added to grafana 7.1 (released today :tada: ) There is a pretty good doc helping with the possible combinations here: https://www.influxdata.com/blog/how-grafana-dashboard-influxdb-flux-influxql/

If you have issues, report them here: https://github.com/grafana/grafana/issues