Skip to content

How to: Filter events received by dashboards

Ivan Kuchin edited this page Mar 6, 2021 · 2 revisions

Since 1.3.2 Smashing provides a way to filter the events that are sent to dashboards. Before this version, Smashing would send all the events for every dashboard. It could result in performance issues for your dashboard if you had many events and many dashboards.

In 1.3.3 some issues with this implementation were fixed, and then in 1.3.4 we added a flag to control whether the events are filtered or not. This flag is enabled by default, meaning we reduce the number of events sent to each dashboard.

You can control this setting by changing the value of Dashing.filterEvents = true|false. This can be done in your application.coffee or individual dashboard inline javascript.

If Dashing.filterEvents = false, then the URL /events will return the data for all the events in Smashing. Whereas with Dashing.filterEvents = true dashboards will use a URL similar to /events?ids=synergy,buzzwords,abc.

With this second URL, only data for these three events are received in the event stream, no matter how many events are being published by your Smashing jobs. This reduces the data sent via network, as well as the memory and processing time necessary in the browser.

Clone this wiki locally