aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2021-04-21 22:56:48 +0000
committerAlan Somers <asomers@FreeBSD.org>2022-04-20 21:18:41 +0000
commit1a7f22d9c211f504f6c48a86401469181a67ec34 (patch)
tree55127de732b740151b8eb322023b030b2fd5720f /usr.sbin
parentb9e5884ef786a6c0fd203064baa07ef308025707 (diff)
downloadsrc-1a7f22d9c211f504f6c48a86401469181a67ec34.tar.gz
src-1a7f22d9c211f504f6c48a86401469181a67ec34.zip
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/inetd/inetd.conf3
-rw-r--r--usr.sbin/services_mkdb/services1
2 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/inetd/inetd.conf b/usr.sbin/inetd/inetd.conf
index 82f68be7ab5d..09dfbab66496 100644
--- a/usr.sbin/inetd/inetd.conf
+++ b/usr.sbin/inetd/inetd.conf
@@ -120,6 +120,9 @@
#
#prom-sysctl stream tcp nowait nobody /usr/sbin/prometheus_sysctl_exporter prometheus_sysctl_exporter -dgh
#
+# Example entry for the CTL exporter
+#prom-ctl stream tcp nowait root /usr/bin/ctlstat ctlstat -P
+#
# Example entry for insecure rsync server
# This is best combined with encrypted virtual tunnel interfaces, which can be
# found with: apropos if_ | grep tunnel
diff --git a/usr.sbin/services_mkdb/services b/usr.sbin/services_mkdb/services
index d1f0596c958c..71dda5b8d80f 100644
--- a/usr.sbin/services_mkdb/services
+++ b/usr.sbin/services_mkdb/services
@@ -2000,6 +2000,7 @@ bacula-sd 9103/udp #Bacula Storage Daemon
prom-sysctl 9124/tcp #prometheus_sysctl_exporter(8)
git 9418/tcp #git pack transfer service
git 9418/udp #git pack transfer service
+prom-ctl 9572/tcp #CTL prometheus
odbcpathway 9628/tcp #ODBC Pathway Service
odbcpathway 9628/udp #ODBC Pathway Service
davsrc 9800/tcp #WebDav Source Port