Skip to content

Prometheus/OpenMetrics endpoint series generator for load testing.

License

Notifications You must be signed in to change notification settings

pracucci/avalanche

 
 

Repository files navigation

avalanche

Avalanche serves a text-based Prometheus metrics endpoint for load testing Prometheus and possibly other OpenMetrics consumers.

Avalanche also supports load testing for services accepting data via Prometheus remote_write API such as Thanos, Cortex, M3DB, VictoriaMetrics and other services listed here.

Metric names and unique series change over time to simulate series churn.

Checkout the blog post.

configuration flags

avalanche --help

run Docker image

docker run quay.io/freshtracks.io/avalanche --help

Endpoints

Two endpoints are available :

  • port/metrics - metrics endpoint
  • 2112/stats - stats endpoint
  • port/health - healthcheck endpoint

build and run go binary

Do Go setup before this

mkdir -p $GOROOT/github.com/open-fresh
cd $GOROOT/github.com/open-fresh
git clone https://github.com/mnottheone/avalanche.git
go install github.com/open-fresh/avalanche/cmd/...
cmd --help

## Example 
cmd --remote-url=http://host:port/api/v1/remote_write --remote-read-url=http://host:port/api/v1/query --metric-count=10 --label-count=1 --series-count=100 --value-interval=10 --series-interval=360000 --metric-interval=360000 --remote-requests-count=100000 --remote-write-interval=1000ms --const-label=instance=local --remote-read-batch-size=50 --remote-read-requests-count=500 --remote-read-interval=10s

About

Prometheus/OpenMetrics endpoint series generator for load testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.7%
  • Other 1.3%