vLLM monitoring should connect endpoint availability, queue depth, latency, tokens, and GPU state. Prometheus collects time series, Grafana displays dashboards, and a separate exporter helps monitor hardware. For charts to be useful, metric definitions and thresholds should be tied to the operational task and the pinned server version.
Prepared by Vladimir Lomtev’s AI Studio on November 14, 2026 for developers and administrators of self-hosted inference. This is a setup and troubleshooting guide based on the official documentation, with no claim of a completed deployment. The configuration examples are intended for a test Linux environment with vLLM already running. Response quality and business impact are measured separately from infrastructure charts.
Contents
- What questions monitoring should answer
- Basic collection architecture
- Step 1. Verify the vLLM export
- Step 2. Configure Prometheus
- Step 3. Connect Grafana
- Which dashboards to create first
- Example metric queries
- How to interpret queue and memory
- Alerts should map to actions
- How to investigate an incident
- Answer quality requires separate monitoring
- Monitoring acceptance checklist
- Frequently asked questions
What questions monitoring should answer
Start with operational questions: is the service available, is work arriving, is the model keeping up, why is latency rising, and what is happening with memory. A dashboard should help you choose the next action, not just display constantly changing lines.
Separate three layers. Infrastructure describes GPU, CPU, RAM, and processes. The model server covers requests, queueing, and generation. The application covers the full user journey and the usefulness of the answer. A useful architecture connects them by time and release ID, without turning the user's raw text into a metric label.
In Production Metrics vLLM server-side metrics are described. Before configuring anything, check the actual export for your version: names, types, and labels may differ from the latest documentation.
Basic collection architecture
vLLM exposes a metrics endpoint, Prometheus scrapes it on a schedule, and Grafana queries Prometheus. For GPU data, add a separate telemetry source compatible with the hardware and system. For end-to-end timing, the client application should generate its own measurements.
If the services are in different containers, localhost is different for each one. An address that works from the host shell may be unreachable from the Prometheus container. Define the network setup first, then copy the configuration.
Do not expose technical endpoints to the public internet just for convenience of viewing. Access to metrics and monitoring interfaces must follow internal policy. Even without full prompts, labels can reveal model names, nodes, and workload patterns.
Step 1. Verify the vLLM export
On the machine where the server is locally accessible, check:
curl -fsS http://127.0.0.1:8000/metrics -o vllm-metrics.txt
If the endpoint is protected by a gateway or another policy, use the route intended for monitoring and supported authentication. Do not assume that the generation key automatically protects all technical endpoints: this must be verified for your configuration.
The file should contain metric definitions and observations. The absence of user requests may mean some series are missing. Send a permitted short request and compare the export. Check access to /metrics separately from the model's ability to answer.
The official Prometheus and Grafana example for vLLM helps map the components. Do not copy a ready-made dashboard without checking that its metrics match your version.
Step 2. Configure Prometheus
For the example below, Prometheus runs in the same host network environment where vLLM is available at 127.0.0.1:8000. Save prometheus.yml:
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: vllm
metrics_path: /metrics
static_configs:
- targets:
- 127.0.0.1:8000
labels:
environment: local-test
A 15-second interval is an instructional choice, not a universal standard. The frequency depends on the required granularity, the number of series, and collection costs. For a short spike, infrequent scrapes may miss important dynamics; too frequent increases data volume.
If Prometheus is already installed, check the configuration with the standard tool:
promtool check config prometheus.yml
Configuration parameters are described in the Prometheus documentation. After applying the config, check the target and the query up{job="vllm"}. A successful scrape does not mean the model is ready: it only confirms the relevant technical check.
Step 3. Connect Grafana
Add a Prometheus data source, specifying the address that is accessible to the Grafana process itself. Use approved credentials and TLS where required by the network. The connection test button should confirm access to the source; then make sure the query up returns the expected target.
In the Grafana instructions for the Prometheus data source the connection settings are described. Do not confuse the user's browser address with the Grafana server address: the browser is not necessarily the component that performs data queries.
Start by creating a few simple dashboards manually. This helps you understand the series definitions. An imported dashboard may look convincing but show empty or incorrectly aggregated data because of a different job name, labels, or metric version.
Which dashboards to create first
| Dashboard | What to monitor | What decision it helps you make |
|---|---|---|
| Availability | Scrape and generation checks | Separate a monitoring failure from a model failure |
| Throughput | Incoming, completed, and failed requests | Determine whether there is real workload |
| Queue | Pending and active requests | Find overload and admission limits |
| Latency | TTFT, total time, stage times | Identify the source of wait time |
| Generation | Input and output tokens | Explain the change in workload profile |
| Memory | KV-cache and GPU pool state | Identify the resource bottleneck |
| Release | Restarts and version changes | Link degradation to the change |
GPU metrics supplement server metrics. For NVIDIA, one option is DCGM Exporter. Choose its installation based on hardware and infrastructure support; do not launch an arbitrary privileged container without validation.
Example metric queries
After checking that the specified names exist, you can start with the queue:
sum(vllm:num_requests_waiting{job="vllm"})
Active work:
sum(vllm:num_requests_running{job="vllm"})
For a classic histogram of end-to-end latency, an example p95 looks like this:
histogram_quantile(
0.95,
sum by (le) (
rate(vllm:e2e_request_latency_seconds_bucket{job="vllm"}[5m])
)
)
The query combines the selected series into one estimate. If you need to compare models or instances, keep the required labels in sum by. If that histogram does not exist in your version, the query does not become valid just because the name matches the article. Check the metric type and allowed aggregation against the actual exporter and the Prometheus function reference.
Do not apply rate mechanically to every metric. Counters and gauges have different meanings. A missing series, a zero value, and a query error are also different: the dashboard should make them distinguishable.
How to interpret queue and memory
A growing queue with stable traffic may indicate reduced capacity, heavier requests, or a change in scheduling. Compare it with input length, output length, and active execution. One chart does not determine the cause.
Used VRAM does not always mean the useful resource is exhausted. The engine may pre-allocate a pool. The KV-cache usage metric and the total GPU volume describe different levels. So you cannot set the same incident threshold for them just from the word "memory."
A drop in GPU utilization while user latency increases may point to a queue before the model, the network, or external tools. First check the full path. A breakdown of the architecture around the model is in the article on the Bitrix24 experience.
Alerts should match the action
For each signal, document the owner and the next step. Server unavailability, a prolonged SLO breach, and rising failure rates usually require different instructions. A "GPU busy" signal without user impact may not require intervention at all.
Choose thresholds after baseline measurement and expectation alignment. Do not copy someone else's seconds and percentages as a standard. Account for the minimum duration of the condition so a single short spike does not create a flood of false alerts.
Separate degradation from missing monitoring data. If Prometheus is not collecting metrics, the chart may disappear instead of showing an error spike. You need separate monitoring of the observation channel itself and its recovery.
How to investigate an incident
- Confirm the symptom on the user side or through an agreed-upon check.
- Compare the start of degradation with the model release, restart, and workload change.
- Check the incoming traffic, queue, and successful completion.
- Break down latency by stage and request class.
- Check memory, device errors, and neighboring processes.
- Apply the prescribed limit or roll back.
- After recovery, record the cause and a reproducible test.
Do not scale resources as the only universal answer. If the application sends duplicates, retries failures endlessly, or includes the entire archive in every prompt, an extra GPU may only hide the problem temporarily.
Response quality requires separate monitoring
HTTP 200 and high speed do not prove correctness. For data extraction, verify fields and types; for RAG, verify grounding in available sources; for an agent, verify that the action is correct. Run the validation set after significant model and configuration changes.
Compare the technical release with the quality assessment. If latency improved after reducing context, check whether important document conditions disappeared. The overall observability approach is covered in the article on monitoring LLMs and AI agents.
Do not store full user text in labels. This increases cardinality and exposes content. For traces, use a separate retention and access policy; the data must be permitted for processing in the chosen system.
Monitoring acceptance template
Model and server version:
Metrics source address and access:
List of verified metrics and units:
Latency, queue, error, and memory dashboards:
Check for missing data:
SLOs and justified thresholds:
Owner of each alert:
Action for overload and failure:
Data policy for labels and traces:
Recovery verification date:
A completed template is more useful than a set of screenshots without metric definitions. It helps the on-call engineer understand what observations are expected and what to do when things change.
The mechanisms behind server settings are covered in the guide to inference engines and acceleration. Before choosing hardware, it is worth going through the comparison of self-hosted inference and API.
Frequently asked questions
Is nvidia-smi enough?
For quick GPU diagnostics, it is a useful tool, but it does not describe the user queue, quality, or the application's full latency. You need multiple levels of observability.
Why does Grafana show an empty panel?
Check access to Prometheus, the job name, the time range, the existence of the metric, and the labels. After a runtime update, the ready-made dashboard may need to be adapted.
Can you average the p95 values from different servers?
Such an average is not a global p95. For a global estimate, you need to correctly aggregate compatible histogram buckets or use the raw observations in an appropriate way.
Do I need to build many dashboards right away?
Start with availability, traffic, latency, queue, and memory. Add detail for specific troubleshooting questions, while keeping the definitions and owners clear.
How Vladimir Lomtev’s AI studio helps with LLM operations
Vladimir Lomtev’s AI studio can connect model deployment with integration, testing, and workflow support. For observability, that means defining the user-outcome criterion, verifying the technical path, and preparing the foundation for post-launch monitoring.
The first step is to choose one process, its current latency, error type, and acceptance criteria. Discuss the project.
How to tell whether monitoring is useful
Useful monitoring lets you distinguish a collection failure from a model failure, explain rising latency, and choose the prescribed action. Test the dashboards with a controlled failure and recovery. Keep the metric definitions and their links to SLOs together with the service configuration.



