grabana icon indicating copy to clipboard operation
grabana copied to clipboard

Any example of querying InfluxDB (InfluxQL)?

Open ccamacho opened this issue 1 year ago • 0 comments

Hi, I'm trying to query an influxdb datasource with some specific parameters in the targets.

I'm always getting a 500 error. The main difference between using Grabana and other libraries like grafanalib of grafonnet is that at least I need to set up in the target at least 2 parameters (query, and rawQuery)

For instance:

query: 'SELECT value FROM autogen.cpu_idle WHERE value::field > 1 GROUP BY hostName::tag ORDER BY time ASC',
rawQuery: true,

Do you have a working example of using influxdb as a datasource (InfluxQL) in the dashboard YAML definitions? @K-Phoen this is a really nice project!

Thanks!

ccamacho avatar Dec 31 '23 10:12 ccamacho