Skip to main content
OpenLIT collects GPU performance metrics from NVIDIA and AMD GPUs using two methods: the Python SDK (for in-process collection) and the standalone OTel GPU Collector Docker image (for infrastructure-level collection). Both methods emit metrics to any OTLP-compatible backend.

Supported GPUs

Enable GPU metrics via the SDK

To collect GPU metrics directly from your Python application, enable collect_system_metrics in openlit.init():
The collect_gpu_stats parameter is deprecated. Use collect_system_metrics=True instead. It collects GPU metrics alongside CPU, memory, disk, and network metrics.

Enable GPU metrics via the OTel GPU Collector

For infrastructure-level collection without modifying application code, run the OpenLIT OTel GPU Collector as a Docker container.
1

Pull the collector image

2

Run the collector container

1

Pull the collector image

2

Run the collector container

AMD GPU collection uses the same collector image. Ensure ROCm drivers are installed on the host:
Add the collector as a service in your existing docker-compose.yml:

Collector environment variables

Metrics collected

The following metrics are emitted per GPU device:

Metric attribute tags

Every GPU metric includes the following resource attributes:

LLM provider integrations

Trace LLM calls with token counts, cost, and latency

Configuration

Full reference for all openlit.init() parameters

Destinations

Send GPU metrics to Datadog, Grafana, New Relic, and other backends