Supported GPUs
Enable GPU metrics via the SDK
To collect GPU metrics directly from your Python application, enablecollect_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.NVIDIA GPU
NVIDIA GPU
1
Pull the collector image
2
Run the collector container
AMD GPU
AMD GPU
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:
Docker Compose deployment
Docker Compose deployment
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
