Closed M0NsTeRRR closed 8 months ago
I don't think the calculation is ours. Unless we mismatch a metric. Can you look at the raw metrics as requested from the UDS or HTTP API?
Indeed, that's what the API reports. I didn't understand the metric that way, but it seems that the metrics do not take static IPs into account.
So for example, this metric kea_dhcp4_addresses_assigned_total{pool="",subnet="192.168.50.0/24",subnet_id="3"} 19.0
returns the number of IP addresses assigned across all configured DHCP pools.
Sorry for the false alarm, but it looked really strange. Thanks for your quick response.
In my setup, I have a subnet (192.168.50.0/24) with a limited DHCP range (192.168.50.201-192.168.50.240). Additionally, I have static DHCP entries that are not within the DHCP range for IoT devices that cannot have static IP addresses configured. The issue is that the two pools have the same values when they should not.
kea-leases.csv
The second metric should have a value of 5
The first metric should have a value of 254