Desktop Only
These koans require a larger screen. Please visit on a desktop browser.

The Hub

Many rivers flow. They do not each find the sea alone.
architecture
services
gateway
api
orders
?
Receivers
Processors
Exporters
backends
Jaeger (traces)
Prometheus (metrics)
Loki (logs)

Each service sends telemetry to every backend. With 3 services and 3 backends, that is 9 connections.

You add a 4th service. How many total connections do you need now?

Every new service adds 3 connections. Every new backend adds N more. The total is always services × backends.

3 × 3 = 9  →  4 × 3 = 12  →  10 × 5 = 50

What if there was a single point in the middle?

A hub appears between the services and backends. Services send to the hub. The hub sends to backends.

What did this pattern achieve?

This hub is called the OpenTelemetry Collector.

It has three internal stages. Based on its position in the diagram, between services and backends, what do you think each stage does?

Match each stage to what it does:

Receivers
Processors
Exporters

The Collector is the hub. Services send to it. It processes and forwards to backends.

One component, many destinations.

Continue →