Docker installation

Docker installation#

This page explains how to install AMD Device Metrics Exporter using Docker.

System requirements#

  • ROCm 6.2.0 or later

  • Ubuntu 22.04 or later

  • Docker (or a Docker-compatible container runtime)

Installation#

The Device Metrics Exporter container is hosted on Docker Hub at rocm/device-metrics-exporter.

  • Start the container:

  • Security priviledge SYS_ADMIN required if profiler metrics are enabled

docker run -d \
  --device=/dev/dri \
  --device=/dev/kfd \
  --cap-add=SYS_ADMIN \
  -p 5000:5000 \
  --name device-metrics-exporter \
  rocm/device-metrics-exporter:v1.4.1.1
  • Confirm metrics are accessible:

curl http://localhost:5000/metrics

Custom metrics#

For information about custom metrics, see Standalone Container for instructions.