fdb-prometheus-exporter

command module
v0.0.0-...-b444231 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

fdb-prometheus-exporter Docker Pulls go build Go Report Card GoDoc

A FoundationDB Prometheus metrics exporter

Building

Requirements
  • go >= 1.13
git clone git@github.com:PierreZ/fdb-prometheus-exporter.git

go install

Using it

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

Deployments

Docker-Compose

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 "#"
Kubernetes

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL