Demos¶
Seven self-contained demos run the proxy, its agents, and Prometheus on your laptop from the released images. Each
starts with make up in its directory under demos/, and a guided tour walks you through it. Start with the Basics
Demo.
Each runs on macOS or Linux, and needs Docker with Compose v2, git
to clone the repository, GNU make, and curl; the Kubernetes Demo also needs kind, kubectl, and Helm. On macOS, the
Xcode command-line tools (xcode-select --install) have git and make. Where GNU make is installed as gmake, type
gmake wherever the demos say make.
The Proxy and Its Agents¶
| Demo | What it shows | Needs |
|---|---|---|
| Basics Demo | The whole system on one machine: the proxy and its dashboard, three agents behind a simulated firewall, Prometheus, Grafana | Docker |
| Network Demo | A simulated WAN between the agents and the proxies: what a far, thin, dead, flaky, or missing link does, and how they cope | Docker |
| nginx Demo | nginx, a reverse proxy, between the agents and the proxy: its stream timeouts, its reloads, and TLS ended on one port | Docker |
| Kubernetes Demo | The Helm charts on two kind clusters, with Kubernetes doing the operating and the target cluster exposing nothing | Docker, kind, kubectl, Helm |
The Agent Embedded in an App¶
| Demo | What it shows | Needs |
|---|---|---|
| Ktor Demo | A coffee shop, a Ktor app that runs the agent in its JVM through the Ktor plugin | Docker |
| Spring Boot Demo | A roastery, a Spring Boot app in Java whose agent the starter starts from properties | Docker |
| Plain Kotlin Demo | A bakery's ovens, workers with no framework or HTTP server, each reading its metrics in-process | Docker |
Find a Demo by Feature¶
Each demo's guided tour runs in numbered parts. This table names the parts that show each feature, and a part's number links to where its demo's page covers it.
| Feature | Tour parts that show it |
|---|---|
| Per-agent identities and tokens | Basics 8; nginx 1 |
| TLS | nginx 1, ended at nginx; Ktor 7, with the certificates in environment variables; Kubernetes 6, mutual TLS between the charts |
| Service discovery | Basics 3; Network 7; Plain Kotlin 3 |
| Dynamic target discovery | Basics 6; Kubernetes 3 |
| Proxy failover | Network 4, 5 |
| Metric filtering | Network 3 |
| Consolidated mode and path takeover | Basics 5, 10; Ktor 4 |
| Stale agent cleanup | Basics 7; Network 5 |
| A reverse proxy in front, and stream keepalives | nginx 1, 2, 3, 4 |
| Zipkin tracing | Network 6 |
| The Helm charts | Kubernetes 1, 4, 5, 6 |
| Graceful shutdown | Spring Boot 5; Plain Kotlin 4 |
| The proxy's dashboard | Basics 2; nginx 4, behind nginx |
| The dashboard's login | Basics 11 |
| The screens page | Every demo serves one, and its page's screenshots show it |
| Direct agent dashboards | Basics 9; Network 1; Kubernetes 2; Ktor 2; Spring Boot 4 |
| Relayed agent dashboards | Basics 9; Network 4; nginx 3; Kubernetes 2; Ktor 2; Spring Boot 4 |
| Grafana dashboards and alerts | Basics 3; Network 4, 7; Ktor 3; Plain Kotlin 2 |
| The agent's admin endpoints | Ktor 5 |
| The embedded agent, in code | Plain Kotlin 1–5 |
| An embedded agent's settings from the environment | Ktor 2, 7 |
| The agent's own metrics at a proxy path | Plain Kotlin 2 |
| The Ktor plugin | Ktor 1–7 |
| The Spring Boot starter | Spring Boot 1–5, with 3 on Spring Boot's versions of the agent's libraries |