A FoundationDB Prometheus metrics exporter
- go >= 1.13
git clone [email protected]:PierreZ/fdb-prometheus-exporter.git
go installfdb-prometheus-exporter is env-var driven, you can customize:
FDB_API_VERSIONFDB_CLUSTER_FILEFDB_CREATE_CLUSTER_FILEFDB_EXPORT_WORKLOADFDB_METRICS_LISTENFDB_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.yamlYou 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