Skip to content

Hygon DCU

Collect monitoring metrics for Hygon DCU / HCU accelerators through hy-smi-exporter, including compute utilization, VRAM and GTT, temperature, power, voltage, clock frequencies, PCIe links, and ECC/RAS errors.

Configuration

Prerequisites

  • The target node must have the Hygon accelerator driver (hydcu / hycu) and DTK toolchain installed. The host must be able to run the read-only command hy-smi (usually located at /opt/hyhal/bin/hy-smi or /usr/bin/hy-smi).
  • DataKit must be installed, and its host must be able to access the :9584/metrics endpoint served by hy-smi-exporter.

Deploy hy-smi-exporter

Obtain the binary from di-matrix-ai/hy-smi-exporter, or build it with Go 1.23+:

git clone https://github.com/di-matrix-ai/hy-smi-exporter.git
cd hy-smi-exporter
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o hy-smi-exporter ./cmd/hy-smi-exporter

Start hy-smi-exporter on the node with Hygon DCU / HCU hardware. Enable --hy-smi.collect-1s-stats=true to collect core and memory controller utilization and fully parse metrics on driver versions that only support hy-smi -a text details:

./hy-smi-exporter \
  --web.listen-address=:9584 \
  --hy-smi.path=/opt/hyhal/bin/hy-smi \
  --hy-smi.timeout=10s \
  --hy-smi.collect-1s-stats=true \
  --log.level=info

After startup, verify the health check and metrics endpoints:

curl -s http://127.0.0.1:9584/healthz
curl -s http://127.0.0.1:9584/metrics | grep '^hy_smi_'

Configure DataKit

In the DataKit installation directory, copy the prom collector configuration:

mkdir -p conf.d/prom
cp conf.d/samples/prom.conf.sample conf.d/prom/hy_smi.conf

Edit conf.d/prom/hy_smi.conf, replacing <host> and <env> with the actual node address and environment identifier. Use metric_name_filter = ["^hy_smi_"] to keep only Hygon accelerator metrics:

[[inputs.prom]]
  urls = ["http://<host>:9584/metrics"]
  source = "hy_smi"
  interval = "15s"
  timeout = "10s"
  measurement_name = "hy_smi"
  keep_exist_metric_name = true
  metric_name_filter = ["^hy_smi_"]
  election = false

  [inputs.prom.tags]
    service = "hygon_dcu"
    env = "<env>"

Restart DataKit

datakit service -R

Metrics

Measurement: hy_smi.

MetricName MetricDescribe Dimensions Unit
hy_smi_bad_pages_retired_total Cumulative retired bad pages on the accelerator gpu, host, instance, service, env -
hy_smi_boost_level_info Current accelerator Boost level; always 1, with the level stored in the level tag gpu, level, host, instance, service, env -
hy_smi_clock_hertz Current operating frequency of each accelerator clock domain (sclk/mclk/socclk) domain, gpu, host, instance, service, env Hz
hy_smi_clock_max_hertz Maximum supported accelerator clock frequency (sclk) domain, gpu, host, instance, service, env Hz
hy_smi_clock_min_hertz Minimum supported accelerator clock frequency (sclk) domain, gpu, host, instance, service, env Hz
hy_smi_cu_utilization_ratio Accelerator compute unit (CU) wavefront utilization ratio (0–1) gpu, host, instance, service, env -
hy_smi_devices Total Hygon accelerator devices discovered during the latest successful collection host, instance, service, env -
hy_smi_df_bandwidth_mbytes_per_second Accelerator Data Fabric (DF) on-chip interconnect read/write bandwidth gpu, host, instance, service, env MB/s
hy_smi_ecc_correctable_errors_total Cumulative correctable ECC errors on the accelerator gpu, host, instance, service, env -
hy_smi_ecc_uncorrectable_errors_total Cumulative uncorrectable ECC errors on the accelerator gpu, host, instance, service, env -
hy_smi_gtt_total_bytes Total accelerator GTT (Graphics Translation Table) memory capacity gpu, host, instance, service, env B
hy_smi_gtt_used_bytes Used accelerator GTT memory capacity gpu, host, instance, service, env B
hy_smi_hcu_utilization_ratio Accelerator HCU core active-time utilization ratio (0–1) gpu, host, instance, service, env -
hy_smi_health_info Accelerator health check status; always 1, with status stored in the level tag gpu, level, host, instance, service, env -
hy_smi_info Accelerator identity and firmware information; always 1, with model, serial number, driver, health, operating mode, and VBIOS stored in tags bus, device_id, driver, gpu, hcu, health, mode, product_name, serial, unique_id, vbios, host, instance, service, env -
hy_smi_memory_utilization_ratio Accelerator memory controller active utilization ratio (0–1) gpu, host, instance, service, env -
hy_smi_pcie_bandwidth_mbytes_per_second Total accelerator PCIe link transmit/receive bandwidth gpu, host, instance, service, env MB/s
hy_smi_pcie_link_speed_gts Current accelerator PCIe link transfer rate gpu, host, instance, service, env GT/s
hy_smi_pcie_link_width Current accelerator PCIe link lane width (Lanes) gpu, host, instance, service, env -
hy_smi_performance_level_info Current accelerator DPM power performance level; always 1, with the level stored in the level tag gpu, level, host, instance, service, env -
hy_smi_power_cap_watts Currently configured accelerator package power cap gpu, host, instance, service, env W
hy_smi_power_max_watts Maximum allowed accelerator package power cap gpu, host, instance, service, env W
hy_smi_power_watts Current average accelerator package power gpu, host, instance, service, env W
hy_smi_ras_errors_total Cumulative accelerator RAS errors gpu, host, instance, service, env -
hy_smi_temperature_celsius Accelerator sensor temperatures by location (edge/junction/mem) gpu, sensor, host, instance, service, env °C
hy_smi_umc_bandwidth_mbytes_per_second Accelerator unified memory controller (UMC) read/write bandwidth gpu, host, instance, service, env MB/s
hy_smi_up Whether the latest hy-smi collection succeeded (1=success, 0=failure) host, instance, service, env -
hy_smi_voltage_volts Accelerator core voltage rail reading gpu, rail, host, instance, service, env V
hy_smi_vram_available_bytes Currently available accelerator VRAM capacity gpu, host, instance, service, env B
hy_smi_vram_total_bytes Total accelerator VRAM capacity gpu, host, instance, service, env B
hy_smi_vram_used_bytes Currently used accelerator VRAM capacity gpu, host, instance, service, env B
hy_smi_vram_utilization_ratio Accelerator VRAM utilization ratio (0–1) gpu, host, instance, service, env -
hy_smi_wave_utilization_ratio Accelerator compute unit wavefront residency ratio (0–1) gpu, host, instance, service, env -
hy_smi_xhcl_bandwidth_mbytes_per_second Accelerator high-speed inter-card interconnect (XHCL/HSL) bandwidth gpu, host, instance, service, env MB/s

Feedback

Is this page helpful?