Skip to content
Prometheus exporter for FreeBSD CTL daemon
Branch: master
Clone or download
Latest commit 469a436 May 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
ctlstats Initial commit Apr 15, 2019
vendor Initial commit Apr 15, 2019
.gitignore Initial commit Apr 15, 2019
LICENCE Initial commit Apr 15, 2019 Fix a typo May 8, 2019
ctld_exporter.go Initial commit Apr 15, 2019
go.mod Initial commit Apr 15, 2019
go.sum Initial commit Apr 15, 2019

ctld Exporter

Prometheus exporter for ctld (CAM Target Layer / iSCSI target daemon) This exporter uses CGO to get the data (part of the C code is taken from ctlstat and ctladm). It is planned to remove CGO use in future version.

The exported metrics are the data available using ctlstat and matched against target and LUN id within that target.


You can build the latest version using Go v1.11+ on FreeBSD via go get:

go get -u


usage: ctld_exporter [<flags>]

  -h, --help              Show context-sensitive help (also try --help-long and --help-man).
                          Address on which to expose metrics and web interface.
                          Path under which to expose metrics.
      --log.level="info"  Only log messages with the given severity or above. Valid levels: [debug, info,
                          warn, error, fatal]
                          Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or
      --version           Show application version.


This exporter NEEDS to be build on FreeBSD with access to core source (expected location is /usr/src/). The exporter must have r/w access to /dev/cam/ctl thus needing root privileges.

You can’t perform that action at this time.