5 ms·
Love seeing real time streaming connecting through to visualization. You make Grafana look really good. Did you run into any limitations there?
by tibbetts 3y ago
Love seeing real time streaming connecting through to visualization. You make Grafana look really good. Did you run into any limitations there?
- jovezhong 3y agoThe 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-grafana-live/ 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/grafana_provisioning/dashboards/grafana_dashboard.json#L230 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.