Skip to main content

Export rocm-smi metrics as prometheus metrics

Project description

rocm-smi-exporter

Export rocm-smi metrics as prometheus metrics

Docker

docker build . -t powerml/rocm-smi-exporter

# Login with powerml repo in 1password and push to it
docker login
docker push powerml/rocm-smi-exporter

# -v /opt:/opt is needed to make rocm runtime library available to container
docker run -d --rm --name=smi-exporter -p 9001:9001 \
--device=/dev/kfd --device=/dev/dri --group-add video \
-v /opt:/opt powerml/rocm-smi-exporter

# You should see the ROCM_* prefixed metrics
curl localhost:9001/metrics

Pants build

Pants uses explicit BUILD files to track source files' dependencies and builds.

Pants is hermetic, means that the entire build environment is specified in pants.toml, which is copied from example-python.

Extra

  • Add args to systemd service
    • The python code accepts --port and other arguments
    • If needed, set its value when launching systemd service

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lamini_rocm_smi_exporter-0.0.1a5.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file lamini_rocm_smi_exporter-0.0.1a5.tar.gz.

File metadata

File hashes

Hashes for lamini_rocm_smi_exporter-0.0.1a5.tar.gz
Algorithm Hash digest
SHA256 d8ce064f4194c50036b1be04d18faddd3ce718ea9b2fca3e11aad2a55050faec
MD5 2e5190f442bf42f0bd57ba2c7b382d8d
BLAKE2b-256 bfdeb9e57fc55e8abd528618b31c5267e6bba214ba706b5fe5768efbaa9f118b

See more details on using hashes here.

File details

Details for the file lamini_rocm_smi_exporter-0.0.1a5-py3-none-any.whl.

File metadata

File hashes

Hashes for lamini_rocm_smi_exporter-0.0.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d2dba012200ac7fd3f93febd51d1a057b0c2336a5c789a319620d3dd361d04
MD5 eba405f2382a2705451f80e84ea6e414
BLAKE2b-256 650b56d653463c66d623ae3a836430feeac9ca7d52a6964906785b6f4154f700

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page