Collecting App Container Metrics with Sidecar Buildpacks
summary
Shows a concrete solution: a small Go metrics collector or the Prometheus node_exporter is packaged as a sidecar buildpack that installs during supply and creates launch.yaml so the sidecar starts alongside the app. A ready project is the telegraph sidecar buildpack which injects Telegraf into the container, applies a default config, and streams system metrics to a Graphite/Prometheus endpoint. Implementation proves repeatable and avoids modifying app code or per-language collectors.
AI-written summary · about
chapters (11)
- 0:00Intro
- 2:21Why are system metrics important
- 2:39Application Developer Perspective
- 3:39The Issue Getting Metrics • Linux tools only show the host metrics
- 4:51Solution Blueprint
- 5:51Metrics Collector - golang Application
- 6:37Metrics Collector - Prometheus Node Exporter
- 8:58Shipment Solution
- 9:23Sidecar in Cloud Foundry
- 10:36Building a Sidecar Buildpack
- 11:47Telegraf Sidecar Buildpack
