[stork-users] Subnet prefix and shared network name in prometheus metrics
Andrey Kostin
ankost at podolsk.ru
Tue Jun 23 14:33:13 UTC 2026
One more question, with subnet_cmds enabled, does Kea still continues to
report stats without 'prefix' and 'shared_network' labels?
After enabling it I see data in both variants:
{
"__name__": "kea_dhcp4_pool_addresses_assigned_total",
"instance": "X.X.X.X:9547",
"job": "kea",
"pool_id": "0",
"prefix": "X.X.X.X/22",
"shared_network": "olt01",
"subnet": "X.X.X.X/22",
"subnet_id": "1"
}
{
"__name__": "kea_dhcp4_pool_addresses_assigned_total",
"instance": "X.X.X.X:9547",
"job": "kea",
"pool_id": "0",
"subnet": "1",
"subnet_id": "1"
}
Kind regards,
Andrey
Andrey Kostin писал(а) 2026-06-22 16:18:
> Thanks, Slawek, after enabling this hook library, the prefixes and
> shared network names are now visible in Prometheus.
>
> Kind regards,
> Andrey
>
> Slawek Figiel писал(а) 2026-06-22 13:27:
>> Hello Andrey!
>>
>> You need to load the `subnet_cmds` hook in Kea to enable exporting
>> subnet labels to Prometheus. The `subnet_cmds` hook is free and open
>> source since Kea 2.7.7. It is included in the `isc-kea-hook` package.
>>
>> See:
>> https://stork.readthedocs.io/en/stable/install.html#subnet-identification
>> for reference.
>>
>> I hope it solves your problem. I'm here if you have any configuration
>> troubles.
>>
>> Regards,
>> Slawek Figiel
>>
>> On 6/22/26 6:05 PM, Andrey Kostin wrote:
>>> Hi Stork support team,
>>>
>>> When setting up Stork monitoring in Prometheus/Graphana I couldn't
>>> find subnet prefixes and shared network names in metrics, although
>>> they are visible in Stork's WebUI.
>>> Are they expected to be there or are there plans to add these metrics
>>> in the future?
>>>
>>> Kind regards,
>>> Andrey
More information about the Stork-users
mailing list