mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-15 23:36:59 +00:00
This should work nicer when displaying various statistics from prometheus with grafana. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 lines
782 B
Text
11 lines
782 B
Text
# This mustach template can be used as Prometheus text file.
|
|
# https://prometheus.io/
|
|
# HELP dhcpd_pools ISC dhcpd statistics
|
|
# TYPE dhcpd_pools gauge
|
|
{{#subnets}}dhcpd_pools{location="{{location}}",range="{{first_ip}}",used="1"} {{used}} {{gettimeofday}}000
|
|
dhcpd_pools{location="{{location}}",range="{{first_ip}}",touched="1"} {{touched}} {{gettimeofday}}000
|
|
dhcpd_pools{location="{{location}}",range="{{first_ip}}",defined="1"} {{defined}} {{gettimeofday}}000
|
|
dhcpd_pools{location="{{location}}",range="{{first_ip}}",free="1"} {{free}} {{gettimeofday}}000
|
|
dhcpd_pools{location="{{location}}",range="{{first_ip}}",touch_count="1"} {{touch_count}} {{gettimeofday}}000
|
|
dhcpd_pools{location="{{location}}",range="{{first_ip}}",status="1"} {{status}} {{gettimeofday}}000
|
|
{{/subnets}}
|