SR-IOV standalone container configuration#
To use a custom configuration with the SR-IOV Device Metrics Exporter container:
Create a config file based on the provided example config.json
Save
config.jsonin theconfig/folderMount the
config/folder when starting the container:
Note: The /sys mount is required for in-band RAS error reporting.
docker run -d \
--privileged \
--device=/dev/gim-smi0 \
-v /sys:/sys:ro \
-p 5000:5000 \
-v ./config:/etc/metrics \
--name device-metrics-exporter-sriov \
rocm/device-metrics-exporter:sriov-v1.0.0
GPUConfig.ExtraPodLabels, GPUConfig.Fields, GPUConfig.ProfilerMetrics,
and NICConfig are not applicable under SR-IOV and are omitted
from the shipped default config. CommonConfig.HealthService.Enable also
defaults to false. See the Hypervisor column in the
GPU metrics list for the list of metrics supported under
this deployment.
The exporter watches the configuration directory and reloads the configuration when the file changes, so updates take effect without a container restart.