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

Support GraphQL subscriptions #57

Open
SydoxX opened this issue May 14, 2021 · 0 comments
Open

Support GraphQL subscriptions #57

SydoxX opened this issue May 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SydoxX
Copy link

SydoxX commented May 14, 2021

Is your feature request related to a problem? Please describe.
GraphQL allows for subscriptions where data is pushed to the client rather than pulled by the client itself. This happens live via websockets which Grafana also supports.
I'm currently coding a live vehicle dashboard where data is fetched via GraphQL. A vehicle may drive or be stationary at any time so polling via GraphQL may just create unnecessary network traffic and load. With pushing via websockets traffic would only occur when a change in the data source happens.

Describe the solution you'd like
Simply changing any supported query from query to subscription should automatically open a websocket connection to the GraphQL endpoint. When one of the requested query value changes, the change should be immediately reflected on the dashboard without polling.

Describe alternatives you've considered
Grafana polling. Works but it always fetches data even when no new data is available at the source.

@SydoxX SydoxX added the enhancement New feature or request label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant