grafana-toolbox / grafana-client

Python client library for accessing the Grafana HTTP API.
MIT License
107 stars 30 forks source link

Fix Query with InfluxQL #143

Closed storg2001 closed 10 months ago

storg2001 commented 10 months ago

Fix: {'results': [{'error': 'database name required', 'statement_id': 0}]} when using Influxdb with InfluxQL.

Add Field "db" to query: {'data': {'refId': 'test', 'db': 'icinga2', 'q': 'SELECT ....'}}

Description

When using grafana-client with influxdb/influxql query is missing db field.

Checklist

amotl commented 10 months ago

Dear @storg2001,

grafana-client 3.11.0 has just been released, including your improvement. Thank you again.

With kind regards, Andreas.

storg2001 commented 10 months ago

Thank you