rules: derive the short hostname so the GPU join matches node-exporter #8

Merged
grenade merged 1 commits from metrics/rules-host-label into main 2026-09-03 11:24:12 +00:00
Owner

Fix to #7. node-exporter's host label is the short name (benjy, from cichlid's inventory); the first rule derived the FQDN from the miner's instance, so quantus:device_hashrate_per_watt:rate5m produced no series. The regex now takes the first DNS label. Verified against live label sets on the metrics host; the other seven rules already produce values.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5

Fix to #7. node-exporter's `host` label is the short name (`benjy`, from cichlid's inventory); the first rule derived the FQDN from the miner's instance, so `quantus:device_hashrate_per_watt:rate5m` produced no series. The regex now takes the first DNS label. Verified against live label sets on the metrics host; the other seven rules already produce values. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5
grenade added 1 commit 2026-09-03 11:24:01 +00:00
node-exporter's host label is the short name (benjy), the first rule derived
the FQDN from the miner's instance, and quantus:device_hashrate_per_watt
produced no series. Verified against live labels on the metrics host.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5
grenade merged commit 3a869533a1 into main 2026-09-03 11:24:12 +00:00
grenade deleted branch metrics/rules-host-label 2026-09-03 11:24:13 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lair/quantus#8