Simulated vendor Prometheus telemetry
Kasim exposes source-backed Prometheus metric schemas for every exactly owned Synthetic Node and simulated device through one read-only in-cluster endpoint. The metric names look familiar to existing dashboards, but the values are generated by Kasim. They are not readings from physical hardware, drivers, or vendor exporter processes.
Start and scrape
Telemetry is enabled by default with the runtime chart. It does not change a Scenario file or any kasim command:
helm upgrade --install kasim-runtime \
oci://ghcr.io/linkmaq/charts/kasim-runtime \
--version 0.5.3 \
--namespace kasim-system \
--create-namespace
kubectl -n kasim-system port-forward \
service/kasim-runtime-kasim-runtime-telemetry 9400:9400
curl --fail http://127.0.0.1:9400/metricsThe ClusterIP Service has Prometheus scrape annotations by default. If the Prometheus Operator CRD is installed, select one discovery mechanism to avoid duplicate targets:
helm upgrade --install kasim-runtime \
oci://ghcr.io/linkmaq/charts/kasim-runtime \
--version 0.5.3 \
--namespace kasim-system \
--set telemetry.serviceMonitor.enabled=trueThe ServiceMonitor option fails closed when monitoring.coreos.com/v1/ServiceMonitor is not available. To manage scraping entirely outside the chart, set telemetry.service.prometheusScrape=false and leave ServiceMonitor disabled. When ServiceMonitor mode is enabled, its metric relabeling retains the target labels namespace and pod and drops container. Keeping the first two lets existing inventory queries join a device series to scrape-target metadata, for example with on(namespace, pod). They identify the one centralized kasim-system telemetry Pod, not a Synthetic Node or a workload that owns the simulated device. Classify this target as infrastructure and use node plus the exporter-native Node identity label for device placement.
The chart also publishes <release>-dcu-exporter. Its labels are app.kubernetes.io/name=dcu-support and app.kubernetes.io/component=exporter, and its port name is metrics. That is the Service shape accelerator-exporter uses for the hygon-dcu rule. The Service selects the same centralized telemetry Pod, which stays on a real Node. The exporter on that Node scrapes it and keeps the sample node label, so the canonical series belong to the Synthetic Node. Kasim still does not create an exporter Pod on each Synthetic Node.
<release>-ix-exporter uses app.kubernetes.io/name=iluvatar-support and app.kubernetes.io/component=exporter, with port name metrics. That is the Service shape accelerator-exporter uses for iluvatar-ix. The Service has no selector. Its EndpointSlice sets nodeName to the Synthetic Node and the address to the centralized telemetry Pod. A bridge exporter runs on a real Node with NODE_NAME set to that Synthetic Node, so local discovery attributes accelerator_* to the simulated MRC-V100 node. IX 4.3.0 samples do not carry a trusted node label; node_name stays informational.
What one sample means
An H200 Scenario can expose a native NVIDIA family such as:
DCGM_FI_DEV_GPU_UTIL{gpu="0",UUID="GPU-...",pci_bus_id="00000000:af:00.0",device="nvidia0",modelName="nvidia-h200",Hostname="kasim-node-...",DCGM_FI_DRIVER_VERSION="580.126.16",node="kasim-node-...",model="nvidia-h200",uuid="...",vendor="NVIDIA"} 72.4The family name, TYPE, and native labels come from the selected exporter contract. HELP remains source-backed except where an explicit Kasim compatibility value convention is documented. Kasim adds a stable identity overlay to every per-device family: node, device, model, uuid, and vendor. If the exporter already defines one of those names, its native value is preserved. Otherwise the values come from the Synthetic Node, device ordinal, catalog model, deterministic device UUID, and profile display name. Vendor-native ownership labels such as DCGM Hostname, AMD hostname, Cambricon node, Iluvatar node_name, and Enflame host remain present and also describe that Synthetic Node. Vendor-native samples contain no kasim_* label. Family-specific labels are preserved; for example, DCGM_FI_DEV_XID_ERRORS additionally carries err_code and err_msg.
The NVIDIA DCGM contract is anchored to dcgm-exporter releases 4.6.0 through 4.8.3. Within that release line upstream corrected the NVLink bandwidth families from counters to gauges (#658). Since telemetry catalog revision 2026-09-16.1, DCGM_FI_DEV_NVLINK_BANDWIDTH_TOTAL therefore exports TYPE = GAUGE, matching the pinned contract rather than the older counter-typed capture.
Every Synthetic Node carries feature.node.cloud.xiaoshiai.cn/accelerator-model.name=<catalog-model-id>. Exporter model labels bound by the Telemetry Catalog use the same catalog model ID, so NVIDIA modelName is byte-for-byte equal to the Node label. Multiple pools on one Node Group may share a model, but different accelerator models in one Node Group are rejected because the Node label has only one value. Within one device, all five identity-overlay values and native selectors such as gpu, id, minor_number, and device_id remain identical across every metric family and process restart.
Do not replace node with the real Node hosting the centralized telemetry Pod and do not enrich it from kube_pod_info. Synthetic Nodes remain series dimensions on this aggregate endpoint; Kasim does not create a fake exporter Pod or Service for every Node.
With ServiceMonitor discovery, downstream inventory queries may match scrape-target metadata with on(namespace, pod) without changing device placement. Such a join only identifies the Kasim telemetry target; it does not prove that the Pod owns, reserves, or uses those devices.
Huawei Ascend and Hygon DCU contracts
The Huawei contract emits one series per device. The baseline families cover AI Core utilization, temperature, power, HBM used and total memory, HBM utilization, health, and error code. Catalog revision 2026-09-16.1 adds 25 more npu-exporter families anchored to the MindCluster v26.1.0 sources (see Vendor profile evidence):
| Meaning | Families | Unit or convention |
|---|---|---|
| Overall / vector utilization | npu_chip_info_overall_utilization, npu_chip_info_vector_utilization | percent, 0–100 |
| Voltage | npu_chip_info_voltage | volts, generated in 0.78–1.00 |
| DDR memory | npu_chip_info_total_memory, npu_chip_info_used_memory | MB |
| HBM temperature / bandwidth utilization | npu_chip_info_hbm_temperature, npu_chip_info_hbm_bandwidth_utilization | Celsius / percent |
| HBM ECC | npu_chip_info_hbm_ecc_enable_flag, npu_chip_info_hbm_ecc_single_bit_error_cnt, npu_chip_info_hbm_ecc_double_bit_error_cnt, npu_chip_info_hbm_ecc_total_single_bit_error_cnt, npu_chip_info_hbm_ecc_total_double_bit_error_cnt, npu_chip_info_hbm_ecc_single_bit_isolated_pages_cnt, npu_chip_info_hbm_ecc_double_bit_isolated_pages_cnt | state flag / error counts |
| Network / link status | npu_chip_info_network_status, npu_chip_info_link_status | 1=up, 0=down |
| RoCE bandwidth | npu_chip_info_bandwidth_rx, npu_chip_info_bandwidth_tx | MB/s |
| PCIe bandwidth | npu_chip_info_pcie_rx_p_bw, npu_chip_info_pcie_rx_np_bw, npu_chip_info_pcie_rx_cpl_bw, npu_chip_info_pcie_tx_p_bw, npu_chip_info_pcie_tx_np_bw, npu_chip_info_pcie_tx_cpl_bw | MB/ms |
| Power limit | npu_chip_info_power_limit | watts, the profile maximum |
| Chip identity | npu_chip_info_name | constant 1 per the native exporter convention |
Its native device labels are id, model_name, vdie_id, pcie_bus_info, namespace, pod_name, and container_name. The compatibility uuid remains available. Native vdie_id is the per-chip identity the current Rune ascend-npu rule reads as device_id, so each simulated chip gets its own stable UUID. The three workload labels remain empty because the centralized telemetry Pod is not a simulated workload. npu_chip_info_health_status uses the native convention 1=healthy, 0=faulty; npu_chip_info_error_code is zero while healthy and non-zero while faulty.
Rune discovers npu-exporter as a Pod: namespace npu-exporter, label app=npu-exporter, container port name http, path /metrics, and only a Pod whose spec.nodeName equals the exporter process node. The chart runs a second telemetry process there on a real Node. Each sample's node label is the Synthetic Node, and the rule prefers that label over the scrape target, so the chips stay on the simulated server.
The Hygon contract follows the DCU-Exporter names and gauge types:
| Meaning | Family | Unit |
|---|---|---|
| Core utilization | dcu_utilizationrate | percent |
| Used memory | dcu_usedmemory_bytes | bytes |
| Total memory | dcu_memorycap_bytes | bytes |
| Memory remaining | dcu_memory_remaining | bytes |
| Current power | dcu_power_usage | watts |
| Power limit | dcu_powercap | watts, the profile maximum |
| Temperature | dcu_temp | Celsius |
| Correctable errors | dcu_ce_count | count |
| Uncorrectable errors | dcu_ue_count | count |
Hygon native labels are device_id, minor_number, name, node, pcieBus_number, dcu_pod_namespace, dcu_pod_name, and container; error families also carry block_type. device_id, pcieBus_number, the identity overlay, and ordinals 0 through N-1 are deterministic. Workload labels are empty. The physical-device exporter does not publish a separate dcu_health family or a physical-device memory-percentage family. Preserve the raw contract: derive health from uncorrectable/correctable error signals and derive memory percentage as dcu_usedmemory_bytes / dcu_memorycap_bytes * 100 in recording rules or the consumer.
Every owned Node also has kasim_telemetry_node_info. Every device has kasim_telemetry_device_contract_available; profiles without enough evidence produce value 0 and no invented native family. Catalog, source, and render state are available through:
kasim_telemetry_catalog_info;kasim_telemetry_contract_available;kasim_telemetry_source_up;kasim_telemetry_render_errors_total.
These separate kasim_telemetry_* families carry Kasim provenance and make the synthetic source explicit without modifying any vendor family. Scrape-target configuration should also identify the Kasim telemetry Service.
Value behavior
Kasim samples an immutable snapshot every 15 seconds. Repeated scrapes within one bucket return the same values, including after process restart. A stable device identity and time bucket drive one shared load state. Across an eight-device pool, ordinal classes cover idle, sustained-work, memory-heavy, and bursty behavior, while kasim health controls fault and recovery:
- utilization changes smoothly in the inclusive
0to100range; consumers that require a ratio convert it to0to1; - used, free, and exporter-defined reserved memory stay non-negative and within the model envelope;
- power, temperature, clocks, and traffic follow the same load instead of changing independently;
- health values retain the vendor convention; error signals remain zero while healthy and become non-zero while faulty, and unhealthy units suppress activity;
- counters increase monotonically from the documented simulator epoch.
These curves are useful for Prometheus ingestion, dashboard, alert-rule, and platform-adapter tests. They must not be used for accelerator sizing, benchmarking, thermal or power planning, fault diagnosis, or performance comparison.
Coverage since v0.4.0
| State | Profiles |
|---|---|
| Native families enabled | NVIDIA DCGM, AMD Device Metrics Exporter, Intel XPU Manager, Huawei Ascend npu-exporter, Hygon DCU-Exporter, Cambricon mlu-exporter, Iluvatar ix-exporter, Enflame gcu-exporter, Furiosa metrics exporter, Prometheus node_exporter InfiniBand collector |
| Discoverable but disabled as provisional | Intel Gaudi, AWS Neuron, Google TPU provider telemetry, Moore Threads, Graphcore, MetaX |
| Explicitly unavailable | Alibaba Cloud PPU, Biren, Kunlunxin through HAMi, Vastai through HAMi, Qualcomm Cloud AI 100, SR-IOV Device Plugin native telemetry |
Coverage is intentionally evidence-driven. Scheduling support does not imply telemetry support. See the exact names, types, units, labels, source revisions, and product gates in the accelerator telemetry research.
Settings and health
telemetry:
enabled: true
refreshInterval: 15s
staleAfter: 45s
service:
port: 9400
prometheusScrape: true
annotations: {}
serviceMonitor:
enabled: false
interval: 15s
scrapeTimeout: 10s
labels: {}/healthz reports process liveness. /readyz becomes successful only after a fresh Kubernetes observation and a valid render. Scrapes perform no Kubernetes I/O: the server returns an immutable encoded buffer. A failed refresh retains the last successful buffer for at most staleAfter; after that, native series disappear, readiness fails, and only Kasim diagnostics remain.
The telemetry ServiceAccount can only get, list, and watch Scenario Instances and Nodes. The process has no cluster write permission and is pinned to real Nodes by the same hard placement boundary as other runtime components. One snapshot is bounded to 1,000 Synthetic Nodes and 8,000 simulated devices. ServiceMonitor mode retains namespace and pod and removes container after scraping. Annotation-based or externally managed scraping should preserve an equivalent target identity when target-metadata joins are required. In every delivery mode, classify the kasim-system telemetry target as infrastructure and never infer device ownership from its Pod labels.
Acceptance queries
For one eight-device Huawei Node, these instant queries return 8:
count(npu_chip_info_utilization)
count(npu_chip_info_hbm_used_memory)
count(count by (node, device, uuid) (npu_chip_info_health_status))For one eight-device Hygon Node, use:
count(dcu_utilizationrate)
count(dcu_memorycap_bytes)
count(count by (node, device, uuid) (dcu_ue_count))After at least two scrapes, every result from these range queries should be greater than one:
count_over_time(npu_chip_info_utilization[5m])
count_over_time(dcu_utilizationrate[5m])Check uniqueness with count(count by (uuid) (<family>)), compare that result with the Node capacity, and verify identity alignment by grouping every family with (node, device, model, uuid, vendor). No Huawei or Hygon series should match {__name__=~"DCGM_FI_DEV_.*"}.
Troubleshooting
Check all three layers separately:
kubectl -n kasim-system get deploy,pod,service \
-l app.kubernetes.io/component=telemetry
kubectl -n kasim-system get --raw \
/api/v1/namespaces/kasim-system/services/http:kasim-runtime-kasim-runtime-telemetry:9400/proxy/readyz
kubectl -n kasim-system get --raw \
/api/v1/namespaces/kasim-system/services/http:kasim-runtime-kasim-runtime-telemetry:9400/proxy/metricsIf a Node appears only in kasim_telemetry_node_info, inspect its profile's contract state. provisional and unavailable are evidence results, not runtime failures. If /readyz fails, check the telemetry Pod logs and verify that its ClusterRole can read scenarioinstances.simulation.kasim.io and Kasim-owned Nodes.
