Skip to content

Conversation

@dougsc
Copy link

@dougsc dougsc commented Aug 17, 2021

I’m using the SDK to manage dashboards and alerts as code. I hit an issue trying to create alerts based on InfluxDB raw query targets. When testing the alert in grafana I see this error message:

request handler error: failed to query data: type assertion to string failed

The grafana code here seems to require that the resultFormat JSON field must be present.

I tested the change in the PR locally (by adding ResultFormat: "time_series" to my Target definition) and the alert performs as expected without the error message.

Let me know if you need any more details, Thanks.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 47.962% when pulling 24f8c10 on dougsc:add-resultFormat-field into 9de4d14 on grafana-tools:master.

@kevitan
Copy link
Contributor

kevitan commented Oct 29, 2021

is there any news on this? we also need this feature added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants