Skip to content

Sidecar that exposes Prometheus TSDB Status as Prometheus metrics

License

Notifications You must be signed in to change notification settings

ArthurSens/cardinality-exporter

Repository files navigation

cardinality-exporter

Inspired by thought-machine/prometheus-cardinality-exporter, exposes metrics from TSDB-status. The mentioned project is built with tooling made in-house, making it difficult to use and contribute. Thus, this project was created with tools that are broadly used in the market.

The cardinality-exporter will hit the endpoint http://localhost:9090/api/v1/status/tsdb and expose the response as Prometheus metrics. Since the Prometheus address is hardcoded, it can only work as a sidecar at the moment. Contributions are welcome!


Development

Build and run the binary locally with:

make build
./cardinality-exporter

Or as a docker image:

make docker-build
docker run -p 9091:9091 ghcr.io/arthursens/cardinality-exporter:main

By clicking in the button below, you'll have ready-to-go Cloud Develepor Environment to develop cardinality-exporter:

Open in Gitpod

About

Sidecar that exposes Prometheus TSDB Status as Prometheus metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages