vLLM monitoring with Prometheus metrics

vLLM exposes Prometheus metrics on its API server, but the endpoint is unauthenticated by default. This page covers which signals to watch, how to alert on them and how to keep them private.

On this page

Why vLLM monitoring with Prometheus metrics needs a plan before go-live

If a self-hosted vLLM server is in production or close to it, your team needs to see latency, throughput, KV cache pressure and queue depth before users start reporting slow answers or failed requests. vLLM serves Prometheus-format metrics at /metrics on its API server, covering request counts, token throughput, latency histograms and KV cache use, and the histogram buckets are configurable. That endpoint gives you the raw signals, but it does not give you a monitoring plan. Decide now which signals page someone, which only feed dashboards, and who owns each one.

The harder part is interpretation. A rising queue depth or KV cache usage means something different depending on how many accelerators serve the model, how many replicas sit behind the load balancer, and what request lengths your applications send. Before go-live, confirm the GPU capacity each model runs on, the expected concurrency, and the thresholds that mean you need more capacity rather than a tuning change. Ask the team that sized the platform to document those assumptions so that alert thresholds are tied to them, not to generic defaults.

Exposure is the second risk. The --api-key option does not protect /metrics, so anyone who can reach the port can read your traffic patterns and model names. Confirm that the metrics port is reachable only from your Prometheus server and not from user-facing networks, and that the reverse proxy in front of the API allowlists only the endpoints meant for users. The vLLM security documentation is the reference for which endpoints the API key covers and which it does not.

Which vLLM metrics answer which operational question

vLLM exposes its operational signals at a single Prometheus endpoint, and each family answers a different question: is traffic arriving, is it succeeding, is it fast enough, and is there room for more. Read the families together, since a rise in queue depth alongside falling KV cache headroom points to a different fix than a latency rise on its own.

Request volume and outcomes

Request counters show how many requests arrive and how many finish with each outcome. Compare the rate of incoming requests with the rate of completed ones, and split by endpoint so chat, completions and embeddings are read separately. A gap that widens over time means work is accumulating somewhere. Confirm the exact counter names in the metrics docs for the release you pin, because names change between releases.

vLLM metrics docs

Latency histograms

vLLM publishes latency as histograms, so percentiles are computed in Prometheus with histogram_quantile rather than read directly. Time to first token shows how long a user waits before output starts, while end-to-end request latency shows total wait. Histogram buckets are configurable, so set them around your service level targets before building dashboards or alerts. Verify which latency families your release exposes.

Token throughput

Token throughput separates the prompt tokens a server reads from the generation tokens it produces. Plot both as rates to see how much work each replica does per second and how that load shifts across models. Throughput alone does not show saturation, so pair it with queue depth and KV cache use before deciding whether to add capacity or tune batching.

KV cache usage

The KV cache holds attention state for in-flight requests on the accelerator. Its usage gauge shows how close a replica is to running out of room for more concurrent tokens. Sustained high usage with rising waits usually means the replica is memory bound, which affects GPU sizing and context length limits. Track it per replica and per model, since one large-context workload can crowd out others.

Queue depth and waiting requests

Running and waiting request gauges show how many requests are being served and how many are queued behind them. A persistent waiting count is the clearest early signal that a replica needs more capacity or a different scheduling setting. Alert on sustained waiting, not brief spikes, and check whether the queue grows only during known peaks. Use these gauges to decide on replica count before latency degrades for users.

Errors and aborted requests

Error and abort counters record requests that failed or were cancelled before completion. Aborts can come from client timeouts, gateway limits or manual cancellation, so a rise may reflect user behavior rather than a server fault. Correlate abort growth with latency and queue depth, and check server logs for the same window. Confirm which failure and abort counters your pinned release exposes, since their labels and names vary.

Choosing the monitoring stack around the metrics endpoint

This table compares three ways to collect vLLM metrics from its /metrics endpoint: a standalone Prometheus scraping the API server, an in-cluster Prometheus configured through pod or service scrape rules, and a central or managed backend fed by an agent. Read each row against your network layout and on-call model, since the operational cost falls on different teams in each option. The main takeaway is that the scrape path, credentials and retention decisions matter as much as the choice of product.

OptionWhen it fitsOperational cost to plan for
Standalone Prometheus scraping the API server directlySmall deployments on a few VMs or bare metal where one team owns the servers and the scrape targets are fixedYou run the Prometheus server, its storage and retention, upgrades and backups. The scrape path must reach each vLLM host, so firewall rules must allow only this server to read port metrics, and someone must be paged when Prometheus itself fails
In-cluster Prometheus with pod or ServiceMonitor scrape configKubernetes deployments where the platform team already runs a Prometheus Operator or similar stack and vLLM pods carry stable labelsScrape configuration lives with the manifests, so label changes can silently drop targets. Cluster storage for time series, retention settings and resource limits on the Prometheus pods become platform costs, and the team that owns the cluster usually receives the alerts
Central or managed Prometheus-compatible backend reached through an agentOrganizations with several GPU clusters or regions that want one query and alerting plane, or that already buy a managed metrics serviceAn agent runs next to vLLM and pushes samples outbound, so the metrics endpoint stays internal. You pay for ingested series and retention in the vendor's model, and you manage agent credentials, egress paths and the failure mode when the agent or network link drops
Metrics endpoint protectionRequired in all three options because /metrics is not covered by the --api-key optionPlace /metrics on an internal listener or behind a reverse proxy that allowlists only the scraper. Confirm with your security team who may read these metrics, since request volumes and model names can reveal internal usage
Alert routing and pagingNeeded in every option once vLLM serves user trafficDecide whether the platform team, the application owner or both receive GPU saturation and queue alerts. Each option changes who gets paged when a scrape fails versus when latency rises
Data retention and storageMatters most when capacity planning uses months of historyLonger retention increases storage cost in every option. Ask your vendor or platform team to confirm retention limits and how histogram series count toward storage before you set targets

How to wire vLLM metrics into Prometheus step by step

This sequence takes vLLM's Prometheus metrics from a responding endpoint to scraped series, recording rules and alerts, with a check at each stage so the monitoring you ship reflects what the serving engine actually reports.

  1. Confirm the metrics endpoint responds

    From a host inside the monitoring network, request the /metrics path on the vLLM API server and confirm it returns Prometheus text-format output. The platform engineer running the server does this, and the check is complete when request counts, token throughput, latency histogram and KV cache series appear in the response. Note that /metrics is not covered by the --api-key option, so the endpoint must be reachable only from the monitoring network or a proxy you control, which the security step later in this sequence addresses. The vLLM metrics documentation lists the series families to expect for your release.

  2. Set histogram buckets for your latency targets

    Decide which latency ranges matter for your service level objectives, such as time to first token and end-to-end request duration, then configure vLLM's histogram buckets to place boundaries around those thresholds. The platform owner and the team that defines the SLOs should agree on the thresholds together, because buckets that do not bracket the target cannot show whether it is met. Confirm the buckets in the vLLM metrics documentation for your version, restart the server, and check that the bucket boundaries in the exposed output match what you configured.

  3. Create a scrape job limited to monitoring

    Add a scrape job to your Prometheus configuration that targets each vLLM replica's /metrics endpoint, and restrict access so only the Prometheus server or its service account can reach it. Use network policies, firewall rules or a reverse proxy that allowlists the metrics path for that source only. The job is complete when Prometheus shows each target as up on the targets page, and a request from an unapproved address is refused. Confirm the approach with your security team before go-live, since metrics can reveal model names, traffic patterns and capacity.

  4. Verify series and labels per model and replica

    Run queries in the Prometheus expression browser that group request and token series by model name and instance, and confirm each replica appears as a separate series. The engineer doing this should check that every model you serve reports under its own label and that no replica is missing or duplicated, which points to a scrape or relabeling problem. Compare a short burst of test traffic against the counters to confirm they increase as expected. The step is closed when every expected model and replica returns data for every core metric family.

  5. Add recording rules for rates and percentiles

    Write recording rules that precompute request rates, token throughput per second, and latency percentiles from the histogram buckets using rate and histogram_quantile over a window your team chooses. Recording rules keep dashboards and alerts fast and consistent, and they give capacity reviews a stable series to trend. Load the rule file, reload Prometheus, and confirm the new recorded series appear and match a manual query for the same window. Percentile values from coarse buckets are estimates, so note the bucket boundaries alongside them.

  6. Add alert rules for saturation and errors

    Create alert rules for three conditions: KV cache usage staying near saturation for a sustained period, queue depth that keeps growing rather than clearing, and the ratio of failed requests to total requests rising above a threshold you set. Each rule should include a for duration so brief spikes do not page anyone, and a label that routes it to the owning team. The thresholds depend on your traffic and hardware, so set them from observed baselines and confirm the values with the engineers who operate the GPUs. Load the rules and check that the rule status shows as inactive under normal load.

  7. Test each alert and record the results

    Confirm every alert with a query or a controlled test. For saturation and queue alerts, run a load test that pushes the server toward its limits in a test environment and confirm the alert moves to pending and then firing. For the error ratio, simulate failed requests with a test client, then return the system to normal and confirm the alert resolves. Keep a short record of which alerts were tested, the thresholds used, and the person who signed off, so the monitoring setup can be reviewed alongside your operational runbooks.

Using KV cache and queue signals for capacity planning

Sustained KV cache use and queue depth tell you whether a replica is short of room, but not what to change. When KV cache use stays high across a long window while requests wait in the queue, the replica is holding as much concurrent context as its memory allows. The response depends on the cause. If the same model and layout keep running hot at peak, you need more accelerator capacity or more replicas. If queue depth rises while cache use stays moderate, the bottleneck may be compute, which can point to a different parallelism layout or a smaller batch. If cache use is high but traffic is flat, long prompts or generous output limits are often the reason, and lowering the number of concurrent requests per replica may solve it without new hardware. Check the metric's exact name and labels in your vLLM version's metrics output before you write any rule against it.

Read these signals as trends over a window measured in hours or days, not as single spikes. A brief climb in queue depth after a burst is normal for any serving system, and alerting on it leads to over-provisioning. Plot the daily peak and the 95th percentile of KV cache use and queue wait per replica, then compare them against the traffic forecast for the next quarter. A rising baseline with stable request mix is a capacity signal. A rising baseline that tracks a new feature or a single large customer is a planning event that should be confirmed with the product owner before hardware is ordered. Tie each signal to a number of requests per second and a prompt and output length profile, so the forecast converts directly into replica counts.

Thresholds for these signals must come from your own load tests on your own models, hardware and request mix. Published numbers from other deployments describe other workloads, and a cache level that is safe for short chat turns can be unsafe for long document prompts. Run a staged load test that raises concurrency until latency or queue wait breaks your service objective, then record the cache and queue values at that point and set alert thresholds with a margin below it. Repeat the test after each vLLM upgrade, because scheduler changes can move the break point. GPU sizing, procurement or rental, and the choice between tensor and pipeline parallelism for a given model belong to the implementation plan, which should use the signals from this section as its inputs rather than replace them.

Keeping the /metrics endpoint off public networks

The vLLM API key does not protect the metrics endpoint, so keeping /metrics private is a separate job. The cards below cover the gaps in the key, the proxy allowlist, scrape source limits, authenticated scraping and what the metrics themselves reveal.

The API key skips /metrics

The --api-key option protects endpoints under /v1, /v2, /inference and /cohere. It does not protect /metrics, /health, /pause, /resume, /abort_requests or /invocations. Anyone who can reach the server on those paths can read metrics or control the engine without a key. Check the vLLM security docs for your version before assuming the key covers anything beyond the inference routes.

vLLM security docs

Allowlist user routes at the proxy

The vLLM security docs recommend a reverse proxy that forwards only the endpoints meant for users. Configure it as an allowlist, not a blocklist, so new or unexpected paths stay closed by default. Keep /metrics and control paths off the external route entirely, and test from outside the network that each blocked path returns a refusal.

Security recommendations

Limit scrape sources by network

Bind the metrics path to the internal network and restrict it with firewall rules or Kubernetes network policies so only the Prometheus server or its agent can connect. Confirm which address Prometheus scrapes from, including any sidecar or node-level collector, and deny everything else. Remember that the server port itself may serve /metrics, so the rule must target that port.

Use authenticated scraping where supported

If your monitoring stack supports authenticated scrapes, such as bearer tokens or TLS client certificates on the scrape job, enable them so a host on the allowed network still needs a credential. Confirm with your Prometheus and proxy versions that the setting works end to end, and store the scrape credential in your secrets manager, not in the scrape configuration file itself.

Keep prompts and user IDs out of metrics

Metrics and logs should describe load, not content. Do not add labels that carry user identifiers, API keys, tenant names taken from request bodies or prompt text. High-cardinality labels also grow Prometheus storage quickly. Review any custom labels or logging hooks you add, and confirm which request fields reach the logs before you ship them to a central store.

How vLLM metrics flow from the API server to alerts

The flow starts with clients calling the user endpoints through a reverse proxy that allowlists only the paths meant for users. The vLLM API server exposes /metrics on the internal network only, and Prometheus scrapes it from there. Recording and alert rules run on the Prometheus side, and the alert receiver gets notified. The trust boundary sits in front of /metrics: confirm that the proxy never forwards that path, and that the scrape path stays inside the isolated network.

Metrics stay inside the internal network while user traffic passes the proxy allowlist.

How monitoring differs on single node, multi-replica and Kubernetes deployments

On one VM or bare metal host, a single vllm serve process exposes Prometheus metrics at /metrics on its API server, so Prometheus has one scrape target. Identity is simple because one server produces every series, and most of the work moves to the network path and the host around it. The metrics endpoint is not covered by the --api-key option, so access control at the host level matters more than it first appears.

  • One static target: Configure a single scrape job that points at the server address and port, using the /metrics path.
  • Minimal labels: Add a stable environment and model label through relabeling so dashboards can filter when you add hosts later.
  • Restricted reachability: Allow only the monitoring host to reach /metrics, using a host firewall rule.
  • Separate GPU telemetry: vLLM metrics do not replace host-level GPU data, so run a GPU or node exporter on the same host and confirm which exporter fits your hardware.

Check that the scrape succeeds from the Prometheus host and that a request from any other host is refused.

What drives monitoring effort and how to keep it down

This table lists the factors that make vLLM monitoring larger or smaller, with the cost driver for each and the way to contain it. Read each row against your own model count, replica count and environments to see which factors will dominate your effort.

DriverWhy it changes effortHow to keep it down
Number of models and replicasEach model server and replica exposes its own /metrics endpoint, so scrape targets, dashboard panels and alert thresholds grow with every model and replica added.Group series by model and replica labels, template dashboards once, and set alert thresholds per model class rather than per instance.
Scrape and retention volumeLatency histograms carry many buckets per series, and high scrape frequency across many replicas multiplies storage and query load in the Prometheus server.Review the configurable histogram buckets against the latency targets you actually alert on, set a scrape interval that fits your decisions, and confirm retention with your storage team.
Number of alert routes and on-call integrationsEach route, receiver and paging integration needs ownership, testing and maintenance, and noisy rules create repeated work for on-call staff.Keep a small set of paging alerts tied to user impact, send capacity warnings to a ticket queue, and test each route after every change.
Compliance evidence needsAssessors may ask for proof that metrics are collected, retained, access-controlled and reviewed, which adds documentation and retention work beyond operations.Agree the evidence list with your auditor or compliance lead early, then generate it from configuration and retained alert history where possible.
Dashboard countEvery dashboard is a set of queries that someone must keep valid after vLLM upgrades change metric names or labels.Keep one overview dashboard per service, plus a short troubleshooting set, and check dashboards against each new vLLM release before rollout.
Environments (dev, staging, production)Each environment runs its own Prometheus, scrape configuration and access controls, so duplicating setup multiplies configuration effort.Use the same dashboards and rule files in every environment with environment-specific variables only, and keep non-production alerting limited to tests.
Metrics endpoint exposureThe /metrics endpoint is not covered by the --api-key option, so it must be kept off public routes and scraped from a private network, which adds proxy and network rules to maintain.Allowlist /metrics only for the Prometheus scraper network at the reverse proxy or firewall, and confirm the rule in each environment.

Questions teams ask before monitoring vLLM in production

How much effort and time does monitoring vLLM with Prometheus take?

The effort depends mainly on how many vLLM instances you run, how many scrape targets your Prometheus setup already has, and whether dashboards and alert rules must be built from scratch. vLLM already exposes metrics at /metrics on its API server, so the endpoint itself needs no extra build. The work that takes time is wiring scrape jobs into your existing Prometheus or collector, agreeing on which latency and queue thresholds matter, writing alert rules, and testing that alerts fire under realistic load. Ask any partner for a written scope listing each of these items, the environments covered and the review steps. A quote should state what is included and what you must supply.

Can our own platform team monitor vLLM without a partner?

Yes, a capable platform or SRE team can do this in-house, because vLLM is open source and its metrics are documented in the vLLM metrics docs. The main gaps are usually not the scrape configuration but the judgment calls: choosing which histograms to alert on, setting capacity thresholds for your models and hardware, and keeping rules correct after upgrades. Check whether your team already runs Prometheus or a compatible collector, has someone who understands GPU and KV cache behavior, and has time to maintain dashboards. A partner is most useful when those skills or hours are missing, and you can confirm this against your own staffing.

What does the monitoring work need from our team?

The work needs access, network paths and agreed definitions. Typical inputs include a non-production environment for testing, read access to the cluster or hosts running vLLM, a route from your Prometheus server to each vLLM metrics port, and a named owner who can approve alert routing. Service level objectives are the most important input, because latency and availability targets decide which histograms matter and what pages someone at night. Ask your team to define:

  • the latency percentiles and time-to-first-token expectations for each model
  • the queue depth or KV cache level that should trigger a warning
  • who receives each alert and through which channel
Is it safe to expose the vLLM /metrics endpoint?

Do not expose /metrics to the public internet or to general user networks. vLLM's security docs note that the --api-key option does not cover /metrics, /health and several control endpoints, and they recommend a reverse proxy that allows only the endpoints meant for users. Metrics can reveal model names, traffic patterns and capacity limits that help an attacker plan. Keep the endpoint on a private network reachable only by your Prometheus server, and restrict it with firewall rules or network policies. Confirm this design with your security team and test that the endpoint is unreachable from outside the intended network.

How do vLLM metric names change across releases?

Metric names and labels can change between releases, so alert rules and dashboards should be tested after each upgrade. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026, according to the vLLM GitHub releases page. Read the release notes and the current metrics docs before rolling out a version, and compare the metric names exposed by the new version against your rules in a staging environment. Pinning the vLLM version and keeping rules in version control makes these changes easier to review.

What should we receive at the end of a monitoring engagement?

A complete handover should let your team run and change the monitoring without the partner. Ask for the scrape configuration, alert rules and their thresholds, dashboards exported in a format you can version, a list of metrics used and why, and a runbook that says what each alert means and how to respond. You should also receive test evidence showing that alerts fired in a controlled load test, and notes on how to check metric names after an upgrade. Confirm in writing who owns each artifact and where it is stored, and what support follows the handover.

How to verify alerts and keep metrics reliable after handover

Test every alert before the team relies on it. A rule that has never fired is untested, so run synthetic load against a staging or canary replica of vLLM until the KV cache usage and queue depth metrics climb past the thresholds you set. Confirm that the expected series move, that the alert enters the pending state and then firing, and that the notification reaches the on-call channel. Then deliberately trigger the rest, such as a scrape failure by stopping the exporter on a test node and a latency alert by throttling the load generator. Record the timestamp, the observed value and the result for each test, because these records become the baseline for later retests. Also check from outside the cluster network that /metrics cannot be reached through the public load balancer or ingress. The vLLM security docs say the --api-key option does not protect /metrics, so the test should fail closed through the reverse proxy allowlist, not through the API key.

Treat the monitoring stack as something that can also fail. Add a watchdog alert that fires when Prometheus stops receiving samples from vLLM, and a separate check that Alertmanager delivers a test notification on a fixed schedule. After each vLLM upgrade, compare the metric names the new pinned version exposes against the metrics documentation, because renamed or removed series silently break dashboards and rules. Reload the dashboards and confirm that each panel still returns data, then rerun the synthetic load test. Ask the vendor or your own environment to confirm which metrics changed between versions before the rollout, since release notes are the only reliable record of that change for your pinned version.

Write a runbook for each alert and record why each threshold was chosen. For every rule, document what the alert means, the first three checks the on-call engineer should run, who owns the escalation and the action that resolves it. Record the threshold rationale next to the rule, including the load test that justified it and the date it was last reviewed, so that a later team can judge whether it still fits the traffic. Store the runbooks and rule files in version control with the vLLM deployment manifests, and review them at each pinned version change. This documentation is what allows an internal team, or a partner on retainer, to keep the alerts reliable after handover without relying on whoever built them.

How DeployOpen scopes, builds and hands over vLLM monitoring

DeployOpen approaches vLLM monitoring as a fixed-scope piece of work inside your own infrastructure. We agree in writing which metrics, dashboards, alert rules and access controls are in scope, then build and document them so your own operators can run them after handover.

How we scope

  • Written scope lists the vLLM deployments, models and Prometheus servers that monitoring will cover.
  • We confirm which metrics feed latency, throughput, KV cache and queue depth dashboards and alerts.
  • Scope names who owns alert routing, on-call escalation and where metrics data is retained.

How we build

  • We configure Prometheus scraping of the /metrics endpoint on a network path that users cannot reach.
  • We build dashboards and alert rules for latency, throughput, KV cache use and queue depth.
  • We test alerts against controlled load so thresholds are checked before they reach production.

How we hand over

  • Handover includes configuration files, dashboard exports, alert rule definitions and a runbook for each alert.
  • We walk your operators through the dashboards and the steps for responding to each alert.
  • Documentation records the metric names and histogram bucket settings used, so changes can be reviewed later.

How we support

  • Ongoing support and retainers are available for dashboard tuning, alert review and upgrades.
  • Support can cover checks after vLLM minor releases, which arrive about every two weeks.
  • Confirm with us during scoping what support level, response expectations and fees apply to your environment.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.