HomeFreeBSD

ctlstat: add prometheus output

Description

ctlstat: add prometheus output

When invoked by inetd, ctlstat -P will now produce output suitable for
ingestion into Prometheus.

It's a drop-in replacement for https://github.com/Gandi/ctld_exporter,
except that it doesn't report the number of initiators per target, and
it does report time and dma_time.

MFC after: 2 weeks
Sponsored by: Axcient
Relnotes: yes
Reviewed by: bapt, bcr
Differential Revision: https://reviews.freebsd.org/D29901

Details

Provenance
asomersAuthored on Apr 21 2021, 10:56 PM
Reviewer
bapt
Differential Revision
D29901: ctlstat: add prometheus output
Parents
rGb9e5884ef786: bsddialog(3): fix disabled shadow
Branches
Unknown
Tags
Unknown