Stream events in
An Eventhouse, an eventstream with the Bicycles sample, a timestamp added on the way, and a table the events land in.
A real-time dashboard needs three parts in Fabric: an eventstream that receives events, an Eventhouse that stores them, and a Real-Time Dashboard that queries them. This lesson builds the first two with Microsoft's bicycle sample, so you need no device or app sending data.
An Eventhouse to land in
In your workspace choose New item > Eventhouse and name it Bikes. Fabric creates a KQL database inside it with the same name. This is where the events become rows you can query, and it keeps them as they arrive.
An eventstream with sample data
Choose New item > Eventstream and name it BikesStream. On the start page select Use sample data, give the source a name and pick Bicycles from the list. The other samples include Yellow Taxi, Stock Market and Buses; Bicycles sends a reading per docking station with fields such as:
BikepointID the station
Street where it is
Neighbourhood the area
Latitude and Longitude
No_Bikes bikes docked right nowAdd a timestamp on the way
Each reading needs the time it arrived. Switch the eventstream to Edit, open the menu on the tile after the source and choose Manage fields. Select Add all fields, then + Add Field, pick Built-in Date Time Function > SYSTEM.Timestamp() and name it Timestamp. Save.
The tile shows an error until it has somewhere to send the events, which is the next step.
Send it to the Eventhouse
Select the plus on the right edge of the Manage fields tile and choose Destinations > Eventhouse. Fill in the pane:
Data ingestion mode Event processing before ingestion
Destination name BikesTable
Eventhouse Bikes
KQL Database Bikes
Destination table Create new: Bikes
Input data format JsonKeep Activate ingestion after adding the data ticked, save, and select Publish. After publishing, Live view shows events flowing from the source through the tile into the Eventhouse.
Check the rows arrive
Open the KQL database Bikes and its queryset, and run:
Bikes
| take 10Run it again a minute later with | count instead of | take 10, and the number has grown. The stream is running.