liveBook · Manning

Prometheus Adapter

As explained in LLMs in Production

Prometheus Adapter is a Kubernetes metrics adapter that exposes Prometheus metrics through Kubernetes metrics APIs.

When a Kubernetes Horizontal Pod Autoscaler (HPA) needs a metric beyond CPU or memory, Prometheus Adapter can expose Prometheus metrics through a Kubernetes custom or external metrics API. Its metrics must be configured in a ConfigMap. section 6.2.2

Only one adapter API service can be registered at a time for each of those APIs, which can complicate a switch between providers. Although Prometheus Adapter works, KEDA is recommended for production workloads: it can use metrics already exposed through the Prometheus API without configuring each one in a ConfigMap. section 6.2.2

KEDA also supports scaling to and from zero, unlike an HPA alone. Scaling from zero is useful for traffic or queue metrics, but not for CPU, memory, or GPU metrics. section 6.2.2

How LLMs in Production covers it

How deep it goes
Explains ConfigMap configuration and adapter registration limits, but provides no deployment procedure.
Examples
Illustrates an alternative GPU autoscaling architecture using DCGM, Prometheus Operator, and KEDA.
What you can do after
Evaluate Prometheus Adapter against KEDA for production autoscaling and metric configuration.
How it connects
Connects Prometheus Adapter with Kubernetes, Horizontal Pod Autoscaler, custom metrics APIs, and KEDA.

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.