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

Possible to send a dashboard variable to the feed URL as query parameter #42

Closed
Nkmol opened this issue Nov 28, 2022 · 1 comment · Fixed by #47
Closed

Possible to send a dashboard variable to the feed URL as query parameter #42

Nkmol opened this issue Nov 28, 2022 · 1 comment · Fixed by #47
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Nkmol
Copy link

Nkmol commented Nov 28, 2022

Request
I am not sure if this is already possible, but it would be great to set a dashboard variable to the feed URL.

Example

datasources:
  - name: 'Feed'
    type: volkovlabs-rss-datasource
    version: 1
    jsonData:
      feed: http://my-api/resource/activity?parameter=${value}

I believe this might be possible through https://grafana.com/docs/grafana/latest/developers/plugins/add-support-for-variables/#interpolate-variables-in-data-source-plugins?

@mikhail-vl mikhail-vl self-assigned this Nov 28, 2022
@mikhail-vl mikhail-vl added the enhancement New feature or request label Nov 28, 2022
@mikhail-vl mikhail-vl added this to the Version 2.4.0 milestone Nov 28, 2022
@mikhail-vl
Copy link
Member

@Nkmol Thank you for the suggestion. Variable interpolation for queue parameters should be easy to implement.

I will add it in the upcoming version.

@Nkmol Nkmol changed the title Possible to send a variable to the feed URL as query parameter Possible to send a dashboard variable to the feed URL as query parameter Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants