Files
pascal 3b60cc3ace This exporter consumes the dhcpd.leases file which is periodically
written by the dameon.  It has two collectors:

The Stats collector counts the number of leases PER UNIQUE IP found
in dhcpd.leases. This means that if an IP was leased to client X,
but is now leased to client Y, there will be only one entry counted
(the most recent one). This is in line with how dhcpd reads the
file.

The Leases collector will create a vector gague for each client
with an active DHCP lease found in dhcpd.leases. Because this
collector may produce tons of short-lived vectors depending on how
busy DHCPD is, it is disabled by default


one nit and ok semarie@
2025-01-29 17:02:41 +00:00

25 lines
473 B
Makefile

COMMENT = prometheus exporter for dhcpd(8) leases file
MODGO_MODNAME = github.com/DRuggeri/dhcpd_leases_exporter
MODGO_VERSION = v0.2.3
DISTNAME = dhcpd_leases_exporter-${MODGO_VERSION}
CATEGORIES = sysutils
HOMEPAGE = https://github.com/DRuggeri/dhcpd_leases_exporter
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
WRKDIST = ${WRKSRC}
.include "modules.inc"
.include <bsd.port.mk>