A FoundationDB Prometheus metrics exporter
- go >= 1.13
git clone [email protected]:PierreZ/fdb-prometheus-exporter.git
go install
fdb-prometheus-exporter
is env-var driven, you can customize:
FDB_API_VERSION
FDB_CLUSTER_FILE
FDB_CREATE_CLUSTER_FILE
FDB_EXPORT_WORKLOAD
FDB_METRICS_LISTEN
FDB_METRICS_EVERY
An example using Docker-compose is available:
cd deployment/docker-compose
docker-compose up --build
# Metrics will be available at
curl localhost:8081/metrics | grep fdb | grep -v "#"
An example to deploy fdb-prometheus-exporter
on Kubernetes is available. It has been tested with the official FDB Operator.
# After deploying the sample-cluster
kubectl apply -f ./deployment/kubernetes/fdb-metrics-pod.yaml
# You can view metrics through kubctl proxy
kubectl port-forward fdb-prometheus-exporter 8080:8080
# To destroy it
kubectl delete -f ./deployment/kubernetes/fdb-metrics-pod.yaml
You can also find a Batch
job for go-ycsb to spawn some workloads.
# spawn ycsbn workload a to f as a K8S Batch
kubectl apply -f ./deployment/kubernetes/go-ycsb-batch.yaml