Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

krasi-georgiev/benchTSDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Run prometheus compatible ingestors.

docker run -d --net=host --name=cortex -v $(pwd)/config/cortex.yml:/etc/cortex.yml  quay.io/cortexproject/cortex:master-1b36b439 -config.file=/etc/cortex.yml -distributor.ingestion-rate-limit=0 # might need to specify -ingester.lifecycler.interface=netInerfaceName

docker run -d --net=host --name=thanosIngest improbable/thanos:master-2019-07-09-18049ff3 receive

docker run -d --net=host --name=vm victoriametrics/victoria-metrics

Run prometheus to collect the internal metrics of the ingestors.

docker run -d --net=host --name=promMeta -v $(pwd)/config/promMeta.yml:/etc/promMeta.yml prom/prometheus:master --config.file=/etc/promMeta.yml

Run Grafana to display the ingestor metrics.

docker run -d --net=host --name=grafana grafana/grafana

Add data source named PromMeta with 127.0.0.1:9090

Import the dashboard to compare resources usage. ./config/dashboardResources.json

Optional:

Send metrics to ingestors

# Cortex
export URL=http://127.0.0.1:9009/api/prom/push
export SENDER=avalancheCortex

# Short test
docker run -d --net=host --name=$SENDER quay.io/freshtracks.io/avalanche \
--remote-url=$URL \
--metric-count=100 \
--label-count=10 \
--series-count=100 \
--remote-requests-count=1000 \
--value-interval=10

# Long test
docker run -d --net=host --name=$SENDER quay.io/freshtracks.io/avalanche \
--remote-url=$URL \
--metric-count=100 \
--label-count=10 \
--series-count=100 \
--remote-requests-count=1000000 \
--value-interval=10

# Thanos
export URL=http://127.0.0.1:19291/api/v1/receive
export SENDER=avalancheThanos

# Same command as above.

# VM
export URL=http://127.0.0.1:8428/api/v1/write 
export SENDER=avalancheVM

# Same command as above.

Quering

Run Thanos querier:

docker run -d --net=host --name=thanosQuery quay.io/thanos/thanos:master-2019-07-24-f6992f7a query \
     --store="localhost:10901" \
     --http-address="0.0.0.0:10903" \
     --grpc-address="0.0.0.0:10904"

Add Thanos datasource in Grafana as: http://localhost:10903

Add VM datasource in Grafana as: http://localhost:8428

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages