Subnet pool information via statistics api
name: Feature request
about: Better dynamic pool utilization visibility
Descriptions
It is valuable to be able to monitor dynamic pool utilization. The current statistics-get-all api endpoint does not currently provide a way of determining this. assigned-addresses and total-addresses doesn't properly take into account statically assigned addresses, and thus assigned-addresses (includes static IP assignments) is often larger than total-addresses (does not include static IP assignments).
I see that Stork has implemented a solution that brute-forces the separation of these two address types, however that solution is not available when trying to integrate other tooling (nagios, grafana, etc). It seems to me that it would be a more complete solution to augment the statistics API to expose this information to make it easier for both Stork and other tools to be able to properly monitor when a dynamic pool is filling or over utilized.
I would imagine this would look like a per pool per subnet statistic as there may be multiple pools per subnet?