Skip to content

See your first events

In this tutorial, you start streamview with a mock order system. You read the timeline, you open one event, and you find two faults.

You need a terminal on macOS or Linux. You do not need a broker. On Windows, use Docker: see Run streamview in Docker.

Run this command:

curl -fsSL https://github.com/event-catalog/streamview/releases/latest/download/install.sh | sh

The command downloads the program and puts it in the directory ~/.local/bin. The last lines tell you if that directory is not on your path, and what to do.

To make sure that the program is there, run streamview --version. The terminal shows the version.

Run this command:

streamview demo

The terminal shows this line:

streamview is live at http://localhost:4747 with a made-up order system (Ctrl-C to stop)

Your browser opens the page. You see twelve lanes, and new bars come in at the right side.

The streamview page with twelve lanes. Each lane shows bars for the event rate.

Time goes from left to right. Each lane shows one channel, for example orders.placed.

  • The height of a bar shows the event rate.
  • The text below the channel name gives the broker, the rate, and the number of events in the view.
  • The lanes are in the sequence of the order flow. A cause is above its effect.

The time range button at the top right has a clock icon. It shows the time range of the view. Click this button. Then click Last 30 s. The view now shows only the last 30 seconds.

  1. Drag across approximately three seconds of the timeline.
  2. Look at the lanes. Each event is now one thin mark.

The time range button shows the time range of the view. If you see bars and not marks, drag across a smaller range.

Click a mark in the orders.placed lane.

A panel opens on the right side. The panel shows three things:

  • The type, the source, the time, and the ID of the event.
  • The trace: all events of the same order, with the time between them.
  • The full event as JSON.

A blue line on the timeline connects the events of the order.

The event panel on the right side. A blue line connects four events of one order across four lanes.

  1. Click payments.authorized in the trace.
  2. Look at the panel. It now shows the payment event of the same order.

You followed one order through two channels. Press Escape to close the panel.

The demo makes a payment outage in each interval of ten minutes.

  1. Click the time range button. Then click All. The view shows all events, approximately 15 minutes or more.
  2. Find the payments.failed lane. It is red.
  3. Find the time range where the red bars are high.

In that time range, the payments.captured lane is empty. After the outage, payments.captured has high bars, because the held payments come through together.

The demo also makes a bad release in each interval of ten minutes. During the bad release, some orders.placed events send total as text and not as a number.

  1. Find the amber bars in the orders.placed lane.
  2. Press /. The search box opens a list.
  3. Select is, and then select violation.

The timeline now shows only the flagged events.

  1. Zoom in to the amber marks, and click one mark.

The panel shows the label Shape drift, and it shows the field that is different.

  1. Press Backspace in the empty search box to remove the filter.

You started streamview, moved in time, opened an event, followed an order, and found two faults.

Next steps: