top | item 39148706

(no title)

tibbetts | 2 years ago

Love seeing real time streaming connecting through to visualization. You make Grafana look really good. Did you run into any limitations there?

discuss

order

jovezhong|2 years ago

The overall setup process was great. I can simply use the latest Grafana docker image, and use the environment variable to install the extra plugin (timeplus-proton-datasource) and load pre-defined data source and dashboards as yaml. Grafana was one of the few dashboard systems that support live charts over WebSocket (https://grafana.com/docs/grafana/latest/setup-grafana/set-up...) But that mainly work for append-only data. Say every x seconds, there is a new counter. When I need to show the top 5 most active HackerNews users, if I want to auto-refresh this every X seconds, it's not easy to do with Grafana Live. I endedup with using special `limit 5 by emit_version()`, then use a Grafana transformation to order by emit_versio() desc and pick up the top 5 (check the code if you're curious https://github.com/bytewax/hacking-hacker-news/blob/main/gra...)

Kind of a hacky workaround.

This could be a good reason to explain why in Timeplus Cloud we built our own charting component, to support various render modes.