Skip to main content

Observability and Monitoring in llm-d

Please join SIG-Observability to contribute to monitoring and observability topics within llm-d.

Enable Metrics Collection in llm-d Deployments

Platform-Specific

Helmfile Integration

All llm-d guides have monitoring enabled by default, supporting multiple monitoring stacks depending on the environment. We provide out of box monitoring configurations for scraping the Endpoint Picker (EPP) metrics, and vLLM metrics.

See the vLLM Metrics and EPP Metrics sections below for how to further config or disable monitoring.

vLLM Metrics

vLLM metrics collection is enabled by default with:

# In your ms-*/values.yaml files
decode:
monitoring:
podmonitor:
enabled: true

prefill:
monitoring:
podmonitor:
enabled: true

Upon installation, view prefill and/or decode podmonitors with:

kubectl get podmonitors -n my-llm-d-namespace

The vLLM metrics from prefill and decode pods will be visible from the Prometheus and/or Grafana user interface.

EPP (Endpoint Picker) Metrics

EPP provides additional metrics for request routing, scheduling latency, and plugin performance. EPP metrics collection is enabled by default with:

  • For self-installed Prometheus,

    # In your gaie-*/values.yaml files
    inferenceExtension:
    monitoring:
    prometheus:
    enabled: true

    Upon installation, view EPP servicemonitors with:

    kubectl get servicemonitors -n my-llm-d-namespace
  • For GKE managed Prometheus,

    # In your gaie-*/values.yaml files
    inferenceExtension:
    monitoring:
    gke:
    enabled: true

EPP metrics include request rates, error rates, scheduling latency, and plugin processing times, providing insights into the inference routing and scheduling performance.

Dashboards

Grafana dashboard raw JSON files can be imported manually into a Grafana UI. Here is a current list of community dashboards:

PromQL Query Examples

For specific PromQL queries to monitor LLM-D deployments, see:

Load Testing and Error Generation

To populate metrics (especially error metrics) for testing and monitoring validation:

Documentation Version

This documentation corresponds to llm-d v0.3.1, the latest public release. For the most current development changes, see this file on main.

📝 To suggest changes or report issues, please create an issue.

Source: docs/monitoring/README.md