feat(metrics): publish server-type hourly prices #23

Merged
mikluko merged 1 commit from price-metric into main 2026-10-22 19:51:40 +00:00
Contributor

Prices already ranked offerings but never left the process, so what a node pool costs could only be worked out by hand. The gauge carries instance_type and zone like core's node metrics, so PromQL joins it to them without relabelling:

sum by (nodepool) (
  count by (nodepool, instance_type, zone) (karpenter_nodes_allocatable{resource_type="cpu", nodepool!=""})
  * on (instance_type, zone) group_left karpenter_hetzner_instance_type_hourly_price
)
  • CHANGELOG.md has an entry under [Unreleased], or nothing changes for users.
Prices already ranked offerings but never left the process, so what a node pool costs could only be worked out by hand. The gauge carries `instance_type` and `zone` like core's node metrics, so PromQL joins it to them without relabelling: ```promql sum by (nodepool) ( count by (nodepool, instance_type, zone) (karpenter_nodes_allocatable{resource_type="cpu", nodepool!=""}) * on (instance_type, zone) group_left karpenter_hetzner_instance_type_hourly_price ) ``` - [x] `CHANGELOG.md` has an entry under `[Unreleased]`, or nothing changes for users.
feat(metrics): publish server-type hourly prices
Some checks failed
CI / test (pull_request) Failing after 5s
CI / generate (pull_request) Failing after 4s
CI / controllers (pull_request) Failing after 4s
Security / govulncheck (shipped toolchain) (pull_request) Has been skipped
CI / changelog (pull_request) Failing after 3s
CI / chart (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 5m5s
Security / govulncheck (pull_request) Failing after 13m16s
8ae67e4c40
Prices already ranked offerings but never left the process, so what a node pool costs could only be worked out by hand. The gauge carries instance_type and zone like core's node metrics, so PromQL joins it to them without relabelling.
Sign in to join this conversation.
No description provided.