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.

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

(cherry picked from commit 1a7f22d9c211f504f6c48a86401469181a67ec34)

Details

Provenance
asomersAuthored on Apr 21 2021, 10:56 PM
Reviewer
bapt
Differential Revision
D29901: ctlstat: add prometheus output
Parents
rGe4f508d5a211: prometheus_sysctl_exporter: fix metric aliasing
Branches
Unknown
Tags
Unknown