metrics: performance by build — recording rules, dashboard row, throttle reasons #7
Reference in New Issue
Block a user
Delete Branch "metrics/performance-by-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Monitoring side of quantus/miner#9; the miner-side series arrive with quantus/miner#14. Either can merge first: rules over absent series simply produce nothing until the miners are redeployed.
What changed
asset/prometheus/quantus-rules.yml: eight recording rules (promtool check rules: SUCCESS). They join the miner's series (instancehost:9900) with the GPU series from node-exporter's textfile on a derivedhostlabel anddevice=gpuindex: hashrate by device and commit, hashrate per watt, batch time off the GPU, stale work, seal latency p95, idle waiting for the node.script/infra-setup.shmetrics role:prometheus.ymlgainsrule_files:for/etc/prometheus/rules.d, guarded and backed up exactly like thescrape_config_filesinclude; the directory; a sudoers grant for the rules file. Already applied to the metrics host from this branch; Prometheus reloaded. The gpu role was re-run too, so all three GPU hosts ship the new exporter script.deploy.yamldeploy-metrics: pushes the rules file (reload already gated on content change) and validate asserts thequantus-minerrule group is loaded, with the same "is it wired into prometheus.yml" hint as the scrape check.asset/grafana/quantus.json: a "Performance by build" row of eight panels, and a deploy annotation driven by changes inminer_build_info, so no Grafana credentials are needed.asset/gpu/nvidia-textfile.sh: fivenvidia_gpu_event_reason_active{reason=...}gauges fromnvidia-smi's clock event reasons (sw_power_cap, hw_slowdown, sw_thermal_slowdown, hw_thermal_slowdown, hw_power_brake_slowdown). Tested on benjy: power cap active, the rest 0, as expected at a 250 W limit.Known limitation
The device join assumes the miner's engine index equals nvidia-smi's index. True on the single-card hosts; on beast it depends on Vulkan's enumeration order matching, which is likely but not guaranteed. Noted in the rules file.
Merging triggers this repo's deploy (workflow and assets changed): node untouched, metrics pushed and reloaded, validate checks targets and the rule group.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5