speakyourcode / grafana-button-panel

Grafana Button Control Panel
Apache License 2.0
19 stars 11 forks source link

Is it possible to send requests to InfluxDB 2? #13

Open sviatoshkin opened 1 year ago

sviatoshkin commented 1 year ago

Hello, is it possible to send requests to InfluxDB 2?

speakyourcode commented 1 year ago

The plugin only forwards the queries to the datasources, so if they support InfluxDB 2, so does the plugin

fercasjr commented 1 year ago

The plugin only forwards the queries to the datasources, so if they support InfluxDB 2, so does the plugin

It did not work for me as it is. needed to change url:"api/tsdb/query" to url:"api/ds/query"

sviatoshkin commented 1 year ago

Is it possible to add InfluxDB 2 support?

fercasjr commented 1 year ago

Yes, I was messing around with the code and changed the above line to make it work, however Grafana won't let you use a tweaked plugin because needs to be signed, however you can enable debug mode and disable plugin signature to run it, or submit the plugin and sign it.