mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
samples: add prometheus text file collector mustach template
Because prometheus needs timestamp information add that to mustach, and update manual page what tags are available. Reference: https://prometheus.io/docs/instrumenting/exposition_formats/ Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
eabaa8adc2
commit
e4f7259cf6
6 changed files with 78 additions and 6 deletions
|
|
@ -107,10 +107,11 @@ The default format is
|
|||
\fB\-\-mustach\fR=\fITEMPLATE\fR
|
||||
Output using mustach
|
||||
.I template
|
||||
file. Mustache tags in the template are same as json output without IP
|
||||
address information. When the native output formats controlled with
|
||||
file. This is useful when the native output formats controlled with
|
||||
.B \-\-format
|
||||
option do not provide what you need you should use mustach instead.
|
||||
option do not provide what you need. See below example mustach template
|
||||
that is using all available {{tags}} to demonstrate what can be displayed
|
||||
and how.
|
||||
.IP
|
||||
@bindir@/dhcpd-pools --config @docdir@/dhcpd.conf --leases
|
||||
@docdir@/dhcpd.leases --mustach @docdir@/mustach.template
|
||||
|
|
@ -286,6 +287,9 @@ ISC dhcpd configuration file.
|
|||
.TP
|
||||
@DHCPDLEASE_FILE@
|
||||
ISC dhcpd lease file.
|
||||
.TP
|
||||
@docdir@/prometheus.template
|
||||
Prometheus text file collector mustach template.
|
||||
.SH AUTHORS
|
||||
Original design by Sami Kerola.
|
||||
.br
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue