Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add resultFormat field to Target #165

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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