Exports a subset of FoundationDB's "status json" command output as prometheus metrics using tally. It uses the FoundationDB client to connect to the cluster.
This exporter is meant to be run in containers (it can be run a standlone service too, but no init scripts or systemd manifests are provided). The latest container image can be found at tigrisdata/fdb-exporter:main
.
The configuration is done through the following environment variables:
FDB_CLUSTER_FILE
: the cluster file to connect to FoundationDBFDB_API_VERSION
: the api version to use for the FoundationDB connection (default: 710)ENVIRONMENT
: exposed directly as theenvironment
tag in all metricsSERVICE
: exposed directly as theservice
tag in all metricsFDB_VERSION
: exposed directly as theversion
tag in all metricsFDB_CLUSTER_NAME
: exposed directly as thecluster
tag in all metricsFDB_EXPORTER_HTTP_LISTEN_ADDR
: the address where the built-in web server will listen on and expose the metrics on/metrics
url. The default is:8080
To build a binary, simply run make
. This will put an fdb-exporter
binary in the current working directory. To make a container image, run docker build -t YOUR_ORG_HERE/fdb-exporter:YOUR_TAG_HERE .
.
To run the tests, use the make test
command. The tests will start the HTTP server of the interface, and will create the metrics based on bundled json files, and checks for the presence of the metrics.
Feel free to open an issue in github. This exporter is in active development and used in Tigris data.