## Building a Custom Metrics Exporter for Kubernetes

- 種別: release
- 関連技術: kubernetes
- 公開日時: 2026-07-14T18:00:00.000Z
- 情報源: Kubernetes Blog (https://kubernetes.io/blog/2026/07/14/custom-metrics-exporter-kubernetes/)
- パーマリンク: https://vulnpulse.app/items/kubernetes-695b8d535971

Kubernetes ships with built-in awareness of CPU and memory, but most real-world scaling decisions depend on signals that live entirely outside that narrow window: how many messages are waiting in a queue, how long the last batch job took, how many active WebSocket connections a pod is holding. When the built-in metrics are not enough, a metrics exporter bridges that gap. This post walks through writing one from scratch, packaging it as a container, and wiring it into a cluster so that Prometheus — and ultimately the HorizontalPodAutoscaler — can consume it. What a metrics exporter actually do…