Skip to content

Ktor Demo

The repository ships a demo of the agent embedded in an app: a coffee shop, a small Ktor app with built-in customers, runs the agent inside its JVM. The agent connects to a proxy, and Prometheus and Grafana sit beside the proxy. It's the setup Cloud Platforms describes, with the app on ECS, Cloud Run, or Azure Container Apps and the proxy on another host, run on one machine.

%%{init: {'flowchart': {'curve': 'linear'}}}%%
graph TB
  accTitle: The Ktor Demo's containers
  accDescr {
    Outside the firewall, on the proxy host, Grafana on port 3300 reads Prometheus on 9390, which scrapes
    /coffee_shop_metrics through the proxy, dashboard 8394. Inside the firewall, on the app's platform, a load balancer
    on 8390 sends traffic to the coffee shop, a Ktor app, whose embedded agent, dashboard 8395, reads its registry and
    connects out to the proxy over gRPC with TLS and a token.
  }
  G[Grafana :3300] --> P[Prometheus :9390]
  P -->|scrapes /coffee_shop_metrics| Proxy[Proxy, dashboard :8394]
  %% The agent connects out to the proxy, so its arrow points up, into the proxy. Mermaid has no reverse arrow, and an
  %% Agent --> Proxy edge pinned under the proxy by an invisible link drew a second edge beside it, which bent this
  %% one. A two-headed edge keeps the proxy above the agent on one straight line, and the linkStyle below (this is
  %% edge 2, counting from 0) drops its arrowhead at the agent's end.
  Proxy <-->|gRPC over TLS, with a token, outbound only| Agent[embedded agent, dashboard :8395]
  Agent -->|reads its registry| App[coffee shop: Ktor]
  LB[load balancer :8390] --> App

  %% Each zone's title starts with a line break, which grows the zone to fit it, so the title stands clear of the
  %% zone's top edge. Mermaid's subGraphTitleMargin moved the titles down without growing the zones, and moved the
  %% edges' labels onto their arrowheads.
  subgraph host ["<br>Outside Firewall<br>Proxy host"]
    G
    P
    Proxy
  end

  %% The firewall class draws this zone's edge, the firewall, in the accent, and product the proxy's and the agent's
  %% boxes, as on the home page (javascripts/diagrams.js).
  subgraph platform ["<br>Inside Firewall<br>The app's platform"]
    LB
    Agent
    App
  end

  linkStyle 2 marker-end:none
  class platform firewall
  class Proxy,Agent product

Running It

On macOS or Linux, the demo needs Docker with Compose v2, git, GNU make, and curl, as the Demos page says.

make up runs the latest release's proxy image, from Docker Hub, and builds the coffee shop inside Docker against the latest release's library, from Maven Central, so it needs no JDK. Until a release with everything the demo shows is on Docker Hub, it builds from the checkout instead, which needs a JDK 17 or later, as make up-local always does.

Clone the repository at the latest release, then run the demo's commands from its directory, where make help lists its targets:

git clone -c advice.detachedHead=false --depth 1 --branch 4.9.0 https://github.com/pambrose/prometheus-proxy.git
cd prometheus-proxy/demos/ktor
make up      # builds the coffee shop, starts everything, prints the screens page's URL
make tour    # walks through the guided tour, pausing before each step
make down    # stops it and removes its containers and network

The first make up pulls the images and builds the coffee shop, which takes a few minutes. After that it starts in under a minute.

Then open the proxy's screens page, http://localhost:8394/, one browser tab that holds every screen in the demo, each in a separate tab: the proxy's dashboard, the coffee shop, the agent's /debug page, Prometheus, Grafana, and each version's relayed agent dashboard, marked with a signal, which the proxy shows through the agent's connection, 1.1's after a deploy. make open opens it, and the tour's links open in it.

Each screen also has a separate address, which the table gives with the variable that moves its port:

What URL Port variable
The screens page, every screen in one tab http://localhost:8394/ KTOR_DEMO_DASHBOARD_PORT
The coffee shop, through its load balancer http://localhost:8390 KTOR_DEMO_APP_PORT
Proxy dashboard http://localhost:8394/dashboard KTOR_DEMO_DASHBOARD_PORT
Grafana (no sign-in needed; admin / admin to edit) http://localhost:3300 KTOR_DEMO_GRAFANA_PORT
Prometheus http://localhost:9390 (alerts at /alerts) KTOR_DEMO_PROMETHEUS_PORT
The coffee shop's metrics, through the proxy http://localhost:8380/coffee_shop_metrics KTOR_DEMO_PROXY_PORT
The coffee shop agent's direct dashboard http://localhost:8395/dashboard KTOR_DEMO_AGENT_DASHBOARD_PORT
Version 1.1's agent's direct dashboard, after ./demo.sh deploy http://localhost:8396/dashboard KTOR_DEMO_NEXT_AGENT_DASHBOARD_PORT
The agent's /debug page, on its admin port http://localhost:8393/debug KTOR_DEMO_AGENT_ADMIN_PORT

Each port is the Basics Demo's plus 300, so the demos can run side by side. If a port is already taken, set its variable from the table for make up, for example KTOR_DEMO_GRAFANA_PORT=3301 make up. make up saves it in docker/.env, which every later command and docker compose read, so you set it once; delete its line there to go back to the default.

Every port binds to 127.0.0.1 only. The dashboards and the agent's admin endpoints have no authentication, the coffee shop's knobs need none, and Grafana uses its default admin password, so this setup is for a laptop, not for anything shared.

What's Running

Service Role
coffee-shop The app, version 1.0: a Ktor server whose built-in customers order over HTTP, and whose baristas brew from a queue. Its metrics, with Ktor's HTTP and the JVM's, are in a Micrometer registry, and it serves no /metrics. The agent runs inside it, installed with the Ktor plugin from settings the app builds in code, and reads the registry in-process. Its admin endpoints, /debug among them, are on port 8393, for debugging it, and its direct agent dashboard on port 8395.
coffee-shop-next Started only by a deploy (demo.sh deploy or finish-deploy): version 1.1 of the same image, beside 1.0, as a rolling deploy does. Its agent's direct dashboard is on port 8396.
load-balancer The coffee shop's one address, on port 8390, as a platform's load balancer is: it sends every request to 1.0, or to 1.1 once finish-deploy has stopped 1.0.
proxy The stock proxy image. It takes its TLS certificate and key as PEM in environment variables, and the agent's token from one too, with none of them in a file.
prometheus Scrapes the coffee shop's paths through the proxy every 5 seconds, and the proxy's own metrics, and loads the project's alerting rules and the coffee shop's.
grafana Opens on the Coffee Shop dashboard, which links to the two dashboards the project ships.

The secrets are the repository's test certificates and a token, which make up writes to the demo's docker/.env the first time it runs, beside any port you moved. The certificates are public, so this suits a laptop and nothing shared; Cloud Platforms shows how to make your own.

Where the Agent Is Configured

The coffee shop configures its agent in code, with no config file. installPrometheusAgent, in PrometheusAgent.kt, builds the agent's settings from the app's environment in the Ktor plugin's agent { } block, with fromEnvironment(), serves the agent's own metrics beside the app's with agentMetricsAt, and installs the plugin with the app's registry:

/**
 * Runs the prometheus-proxy agent embedded in the shop, with the Ktor plugin, from the app's own settings, in memory: no
 * config file holds the token or the proxy's certificate. It connects to the proxy, so the app opens no port for
 * Prometheus, and reads [registry] in-process for each scrape, so the app has no /metrics either. It's named after
 * [appVersion], so the proxy's dashboard and logs tell the old and new versions apart during a deploy.
 *
 * The plugin starts the agent once the app has loaded, and stops it as the server stops. Without PROMETHEUS_PROXY, or
 * with a setting it can't use, the agent logs why and stays off: the shop's metrics aren't worth an outage, so it keeps
 * serving either way.
 */
fun Application.installPrometheusAgent(
  registry: PrometheusMeterRegistry,
  appVersion: String,
) {
  install(PrometheusProxyAgent) {
    // The shop's metrics, Ktor's and the JVM's among them, at the proxy's /coffee_shop_metrics
    this.registry = registry.prometheusRegistry
    path = "coffee_shop_metrics"

    agent {
      // The version tells the old and new deployments apart on the proxy's dashboard and in its logs
      name = "coffee-shop-$appVersion"

      // The proxy's agent port, as host:port (PROMETHEUS_PROXY), the token (PROMETHEUS_AGENT_TOKEN), and the
      // certificate the proxy's is signed with, as PEM or its base64 (PROMETHEUS_PROXY_CERT), with the name it was
      // issued to (PROMETHEUS_PROXY_AUTHORITY)
      fromEnvironment()

      // The agent's own metrics, for Grafana's Prometheus Agents dashboard, at the proxy's /coffee_shop_agent_metrics,
      // read in-process too: the agent opens no port for them. Its admin endpoints and /debug come from the environment,
      // with nothing here: ADMIN_ENABLED and DEBUG_ENABLED.
      agentMetricsAt(path = "coffee_shop_agent_metrics")
    }
  }
}

The app's Ktor module, coffeeShop in Main.kt, calls it with the registry that Ktor's metrics and the shop's share; the plugin starts the agent once the module has loaded, and stops it as the server stops:

// The app's version, which its page, /status, and its agent's name show, so a deploy can be told apart from the last.
private val version = env("APP_VERSION").ifEmpty { "dev" }

fun Application.coffeeShop(port: Int) {
  // Ktor's HTTP metrics (ktor_http_server_requests_seconds) and the JVM's, then the shop's, in one registry. The plugin
  // goes first: it configures the registry, which Micrometer wants done before any meter is registered.
  val registry = PrometheusMeterRegistry(PrometheusConfig.DEFAULT)
  install(MicrometerMetrics) { this.registry = registry }

  // The agent reads the registry in-process for each scrape, so the app serves no /metrics (PrometheusAgent.kt)
  installPrometheusAgent(registry, version)

  val shop = CoffeeShop(ShopMetrics(registry))

  routing {
    shopRoutes(shop)
    adminRoutes(shop)
  }

  shop.open(this)
  Customers(shop, port).start(this)
}
  • The app depends on com.pambrose:prometheus-proxy-ktor, which brings the agent, as Adding the Dependency shows; the demo's build uses the latest release (make up) or this checkout (make up-local).
  • Its image is built from app/Dockerfile, as Packaging the App describes, with a second way in that copies in a build made on the host, for make up-local.
  • The environment comes from the demo's docker/compose.yml, whose x-coffee-shop-env block gives the proxy's address and the name its certificate was issued to, and reads the token and the CA certificate from docker/.env, which make up writes the first time it runs. It also turns on the agent's admin endpoints, /debug, and its dashboard, with ADMIN_ENABLED, DEBUG_ENABLED, and DASHBOARD_ENABLED, which the agent reads itself, and each version's service gives the dashboard its port, in DASHBOARD_PORT.

What This Demo Shows

Each part of the guided tour, make tour, makes one point. A part's name links to where this page covers it.

Part What it shows Why it matters
1. An app with the agent embedded, and no port open for Prometheus The app serves no /metrics; the agent inside it reads its registry and sends the metrics out to the proxy An app on ECS, Cloud Run, or Azure Container Apps is scraped with no port open
2. Relayed and direct agent dashboards, served from inside the app The agent's dashboard, served from inside the app, relayed through the proxy and direct on a separate port, and Scrape now reading the registry on demand The agent's side of its connection, turned on from the environment with no rebuild
3. The coffee shop's metrics in Grafana, and an alert The app's business metrics, Ktor's and the JVM's, the embedded agent on the dashboard the project ships, and a rush that fires an alert Framework and runtime metrics come for free, the agent needs no separate tooling, and the app's own metrics drive alerts through the proxy
4. A deploy hands the path to the new version Version 1.1's agent takes the path from 1.0's, with no gap in the graphs, and 1.0's takes it back when the deploy is rolled back Rolling deploys keep metrics continuous, and a failed one gives the path back
5. The agent's admin endpoints, for debugging it /ping, /version, /healthcheck, /threaddump, and /debug, turned on from the environment Tools for an agent that won't connect or scrape, with no rebuild
6. The proxy goes away, and the shop keeps serving The shop keeps serving and its /healthcheck stays healthy while the proxy is down, and the agent reconnects A proxy outage never becomes an app outage
7. The secrets come from the environment The app's token and certificate, and the proxy's, come from environment variables rather than files It fits platforms that pass secrets as environment variables

Scenarios

The scenarios are the tour's parts, in order, and calm, fix-machine, rollback, and proxy-start undo them. Select any screenshot on this page to see it full size.

The App and Its Agent

The coffee shop's status page The coffee shop's status page
The coffee shop's status page

The coffee shop's status page shows the queue, the baristas on shift, and the drinks served. It has no /metrics: ./demo.sh peek shows it answering 404, then reads the shop's metrics through the proxy, where Prometheus finds them. The agent reads the app's registry in-process, so Prometheus needs no password, port, or way into the app.

The proxy dashboard's Agents view, with the coffee shop's agent selected The proxy dashboard's Agents view, with the coffee shop's agent selected
The coffee shop's embedded agent on the proxy dashboard

On the proxy dashboard, the embedded agent is an agent like any other: coffee-shop-1.0, named after the app's version, with two paths, the coffee shop's metrics and its own, and its scrapes as they happen. Where the Agent Is Configured, above, shows the code that embeds it.

Relayed and Direct Agent Dashboards

The proxy's dashboard shows only what reaches the proxy. The agent has a dashboard too, served from inside the app, with its side: its connection, each path's registration, its scrapes as it saw them, and what it did, in order. Every agent's dashboard has the same views, so this walk through them holds for the other demos' agents too. The screens page shows it as a relayed agent dashboard, through the agent's connection, in a tab named after the agent: http://localhost:8394/screens#coffee-shop-1-0

  • Its Paths view lists the agent's two paths, each with a green light; select one and its header reads registered: the proxy routes its scrapes to this agent. Beside each are the status of its last scrape and a strip of its recent scrapes, which fills as Prometheus scrapes every five seconds.
  • Select coffee_shop_metrics. Its target is in-process, the app's registry, which the agent reads itself, and Recent scrapes lists the scrapes Prometheus asked for, newest first: when each ran, its status, how long the read took, and the body's size. Scrape now reads the registry at once and shows the status, the size, the metric families and samples, and the start of the body, as Prometheus would get it. It works whether or not the proxy has the path, so when a path doesn't scrape, it tells you whether the agent can read the app's metrics.
  • The Connection view reads connected, to proxy:50051, over TLS. When the agent can't reach the proxy, it reads failing, with the error the last try got: a proxy that's down, a wrong port, a refused token, and a TLS mismatch each show there.
  • The Settings view lists the settings the agent resolved, its token shown only as set.
  • The Activity view lists what the agent did, newest first: the two paths registered, above connected. Problems only narrows it to what went wrong.

The relayed agent dashboard needs nothing from the app: the proxy turns agent screens on, and an agent shows its dashboard there unless setting("dashboard.showOnProxy", false), in the plugin's agent { }, says not to. The coffee shop's environment also serves a direct agent dashboard, on a separate port, which the tour reads while the proxy is down, where the relayed one can't, with nothing in the app's code: DASHBOARD_ENABLED=true, and a DASHBOARD_PORT for each version, 8395 for 1.0 and 8396 for 1.1, which the agent reads itself, over anything the app's code sets. It has no login unless DASHBOARD_PASSWORD sets one, so the demo publishes it on 127.0.0.1; on a platform, its port would stay on the internal network. Direct and Relayed Agent Dashboards compares the two.

The Coffee Shop in Grafana

The Coffee Shop dashboard during a rush, with the espresso machine broken The Coffee Shop dashboard during a rush, with the espresso machine broken
The Coffee Shop dashboard during a rush, with the espresso machine broken

Grafana opens on the Coffee Shop dashboard: the shop right now, whether its agent is connected to the proxy, the days left on the certificate it trusts the proxy by, drinks served by type, orders by outcome, the queue against the baristas, brew time, the order counter's HTTP statuses, and, below them, Ktor's HTTP latency, the JVM's heap, and how long each scrape through the proxy took. Here a rush has filled the queue, and with the espresso machine broken, about three orders in four fail, and CoffeeShopErrors fires. Put the coffee shop's status page beside it to watch the queue on both: http://localhost:8394/screens#coffee-shop+grafana

The coffee shop's status page beside Grafana, during a rush, with its queue growing The coffee shop's status page beside Grafana, during a rush, with its queue growing
The proxy's screens page: the coffee shop's status page beside Grafana
./demo.sh rush            # customers order three times as often
./demo.sh baristas 8      # more baristas drain the queue
./demo.sh calm            # ends the rush
./demo.sh break-machine   # every espresso drink fails
./demo.sh fix-machine

The Coffee Shop dashboard's Prometheus Agents link opens the dashboard the project ships for its agents, which shows the embedded agent like any other, from the agent's own metrics, which agentMetricsAt serves through the proxy. Debugging an Embedded Agent shows how to give your own app's agent the same.

A Deploy

The proxy dashboard's Paths view after a deploy: coffee-shop-1.1 serves both paths The proxy dashboard's Paths view after a deploy: coffee-shop-1.1 serves both paths
The proxy dashboard's Paths view after a deploy: version 1.1's agent serves both paths

./demo.sh deploy starts version 1.1 beside 1.0, as a rolling deploy does, and leaves 1.0 running. 1.1's agent registers the same paths with the same token, and the proxy gives each one to the newer registration and tells 1.0's agent, which logs a warning that the command prints. While 1.0 runs, its agent's dashboard shows the paths as retrying, taken over by coffee-shop-1.1, and Prometheus scrapes 1.1 through 1.1's agent. Each version's customers order from inside its app, so the graphs go on without a gap.

From there, ./demo.sh finish-deploy stops 1.0, as the end of the deploy, and the status page, at the same address, reads Version 1.1: the coffee shop's load balancer sends requests to 1.0 while it runs, and to 1.1 once it has stopped. ./demo.sh rollback instead removes 1.1, as after a failed deploy, and 1.0's agent takes the paths back within seconds, which it logs. After a finished deploy, rollback starts 1.0 again, and its agent takes the paths from 1.1's.

Each version's agent has a dashboard, inside its app, relayed in a separate tab on the screens page, which comes as the agent connects. 1.1's lists the two paths registered: http://localhost:8394/screens#coffee-shop-1-1

Debugging the Agent

When an embedded agent doesn't connect, or a path doesn't scrape, its admin endpoints show what it's doing. The coffee shop's environment turns them on with ADMIN_ENABLED, and its /debug page with DEBUG_ENABLED, with nothing in its code, and the demo publishes the port on 127.0.0.1:8393. The agent reads them itself, from the x-coffee-shop-env block of the demo's docker/compose.yml:

ADMIN_ENABLED: "true"     # its admin endpoints, on port 8093, published on 127.0.0.1:8393
DEBUG_ENABLED: "true"     # adds /debug

./demo.sh debug calls each endpoint and shows what it answered:

Endpoint What it answers
/ping pong, while the agent is running, for a liveness probe
/version The agent's version, release date, and build time, as JSON
/healthcheck The agent's health checks, as JSON: its health, not its connection, so it stays healthy while the proxy is down
/threaddump Every thread in the coffee shop's JVM, the app's as well as the agent's
/debug Only with DEBUG_ENABLED: the agent's name, the ID the proxy gave it when it connected, which is empty while it isn't connected, the proxy it's connected to or trying, and each path with the URL it scrapes, or in-process for the app's registry

Turn them off once the agent works, since the admin port has no authentication and /threaddump shows the app's threads: take ADMIN_ENABLED and DEBUG_ENABLED out of the app's environment and restart it, with no new build, and set them again when you need to look. ADMIN_PORT moves the port. In code, setting("admin.enabled", true) and setting("admin.debugEnabled", true) do the same, though the environment overrides them. Debugging an Embedded Agent has more.

The agent's dashboard answers the same questions in a browser, and some the admin endpoints can't. Its Connection view shows the last error from each proxy endpoint while the agent can't connect, its Paths view why the proxy refused a path, and its Activity view the order things happened in. The coffee shop logs a warning at startup that the dashboard has no authentication and listens on all interfaces; inside the container it has to, for Docker to publish its port, which the demo binds to 127.0.0.1.

The Proxy Goes Away

A health check that restarted the app whenever the proxy was down would turn a proxy outage into an app outage. The agent's /healthcheck reports the agent itself, not its connection, and the app never waits on its agent, so the shop keeps serving and stays healthy while its metrics stop.

./demo.sh proxy-stop stops the proxy. The screens page is the proxy's, so while it's down, a link into the page can't load, and until it's back, this section gives each screen's address. The coffee shop keeps serving, and an order still goes through (./demo.sh order), since its agent retries in the background and the app never waits on it. Prometheus can't reach the proxy, so the graphs stop, Grafana's Agent reads Disconnected, and CoffeeShopDown fires. The agent's /debug page shows an empty AgentId, since the agent has lost its connection, and the proxy it keeps trying, while its /healthcheck still reads healthy: http://localhost:8393/debug

The direct agent dashboard, which answers while the proxy is down, where the relayed one can't, reads the outage as any agent's does: its Connection view turns failing, with the error the agent's last try got, at http://localhost:8395/dashboard/connection, and the Basics Demo walks through it.

./demo.sh proxy-start brings the proxy back, and the agent reconnects within a few seconds and registers its paths again.

Secrets from the Environment

./demo.sh secrets lists the coffee shop's and the proxy's secrets by name, and shows that the app's container holds no config file. The app builds its agent's settings in code from its environment, with fromEnvironment(), and the stock proxy image, which has no shell to write a variable to a file, takes its certificate and key as base64 PEM in CERT_CHAIN_PEM and PRIVATE_KEY_PEM, and logs only whether each is set. On a cloud platform, they're the service's variables.

Grafana's Certificate stat, at the end of the Coffee Shop dashboard's top row, counts the days left on the CA certificate the agent trusts the proxy by, from agent_tls_cert_expiry_timestamp_seconds, which the agent reports for each TLS collection it's given, from a PEM in its environment as from a file. The demo's test certificates last until 2126, so it's green. It turns orange under 30 days, and red under 14, when Prometheus's AgentTlsCertExpiringSoon alert warns of it.

Scenario Reference

Command Effect How it works
demo.sh peek Looks for the coffee shop's /metrics, which it doesn't have, then reads its metrics through the proxy curl of the app's /metrics, then of the proxy's /coffee_shop_metrics
demo.sh order [drink] Orders a drink at the counter (default latte) POST /orders?drink=<drink>
demo.sh rush Customers order three times as often POST /admin/rush?on=true
demo.sh baristas <count> Puts this many baristas on shift (1 to 12) POST /admin/baristas?count=<count>: one sent home finishes the drink in hand
demo.sh calm Ends the rush, and keeps three baristas POST /admin/rush?on=false and /admin/baristas?count=3
demo.sh break-machine / fix-machine Every espresso drink fails, or is served again POST /admin/machine?broken=true / false
demo.sh deploy / finish-deploy Starts version 1.1 beside 1.0, which keeps running, or stops 1.0 to finish the deploy, starting 1.1 first when none is under way deploy starts coffee-shop-next (compose profile deploy), whose agent takes the paths; finish-deploy stops coffee-shop, and the load balancer sends the shop's requests to 1.1
demo.sh rollback Puts 1.0 back, and removes 1.1 During a deploy, removes coffee-shop-next, and 1.0's agent takes its paths back; after one, starts coffee-shop, whose agent takes them from 1.1's, then removes coffee-shop-next
demo.sh proxy-stop / proxy-start Stops or starts the proxy docker compose stop / start proxy: the agent retries every 3 seconds until it's back
demo.sh debug Calls each of the agent's admin endpoints, and shows its /debug page curl of /ping, /version, /healthcheck, /threaddump, and /debug on the agent's admin port, which the coffee shop's environment turns on
demo.sh secrets Shows where the secrets come from The names of the app's and the proxy's variables, and the app's container's files
make tour [PART=n] Walks through the guided tour, from part 1 or the one given, pausing before each step
make status The containers, the coffee shop's state, and the URLs
make logs [SERVICE=name] Follows the logs, of every service or the one given
make open Opens the proxy's screens page, which holds the coffee shop, every dashboard, Prometheus, and Grafana, in the browser

calm, fix-machine, rollback, and proxy-start undo every scenario. For a clean slate, make down && make up.

Next Steps

  • The demo's README has these scenarios as a guided tour, explaining how each one works, and lists the files that set the demo up. The coffee shop's code is in demos/ktor/app.
  • Cloud Platforms sets the same thing up for real: the app on ECS, Cloud Run, or Azure Container Apps, and the proxy on AWS, GCP, Azure, DigitalOcean, or Railway, with your own certificate and token.
  • Embedded Agent covers the API the coffee shop uses, and the agent's logging and metrics inside a host app.
  • The other demos, in the order the Demos page gives them:
    • Basics Demo: the whole system on one machine, the proxy and its dashboard, three agents behind a simulated firewall, Prometheus, and Grafana
    • Network Demo: a simulated WAN between the agents and the proxies, and what a far, thin, dead, flaky, or missing link does
    • nginx Demo: nginx between the agents and the proxy, its stream timeouts, its reloads, and TLS ended on one port
    • Kubernetes Demo: the Helm charts on two kind clusters, with Kubernetes doing the operating and the target cluster exposing nothing
    • Spring Boot Demo: a roastery, a Spring Boot app in Java whose agent the starter starts from properties
    • Plain Kotlin Demo: a bakery's ovens, workers with no framework or HTTP server, each reading its metrics in-process