Skip to content
Snippets Groups Projects
Forked from ai3 / tools / slapd-prometheus-exporter
16 commits behind the upstream repository.
ale's avatar
ale authored
Update module github.com/go-ldap/ldap/v3 to v3.3.0

See merge request ai3/tools/slapd-prometheus-exporter!3
2f6a5109
History

slapd-prometheus-exporter

A reasonably useful Prometheus exported for OpenLDAP slapd. It tries to run minimal LDAP queries so that it works on large/busy installations.

Usage

The exporter is a standalone daemon meant to be run alongside slapd. It runs its own HTTP server to serve the Prometheus-compatible /metrics endpoint. To run it:

$ slapd-prometheus-exporter [--addr=ADDR] [--uri=URI] [--base=DN] &

Where ADDR is the [HOST]:PORT address to bind to, URI is the LDAP URI of the slapd server (by default it will try to connect on the standard LDAPI UNIX socket). If --base is specified, DN should point at the root object of your database, which will export its contextCSN attribute, useful for monitoring of replication delay.