Skip to content

vinted/ceph-exporter

Repository files navigation

Prometheus ceph exporter

Information

Exporter queries ceph admin sockets (asok) and generates detailed metrics for:
OSDs
MONs
RGWs
Any other (future and present) instances which support asok sockets

Metric names are generated from socket schema.
Thus it should not depend on ceph version and work with all ceph releases.

Building

Checkout https://github.com/vinted/ceph-exporter repo.
Build executable:

go build

Using

Execute ceph-exporter:

./ceph-exporter

By default exporter will bind to port 9353.

Configuration

Following config parameters are available:

  -asok.path string
    	path to ceph admin socket direcotry (default "/var/run/ceph")
  -log.level string
    	Logging level (default "info")
  -telemetry.addr string
    	host:port for ceph exporter (default ":9353")
  -query.interval int
      How often should daemon read asok metrics (default 15)
  -health.collector bool
      Collect health status from ceph monitor (default false).
      This collector should not run on every ceph cluster node. It is enough to
      have single health.collector (or several for HA) enabled to collect cluster health.
  -config.file string
      Path to ceph config file (default /etc/ceph/ceph.conf).
      Needed only when health.collector is enabled