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
docker run -d --net=host --name=promMeta -v $(pwd)/config/promMeta.yml:/etc/promMeta.yml prom/prometheus:master --config.file=/etc/promMeta.yml
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:
- Import VM dashboard: https://grafana.com/dashboards/10229
- Import Thanos dashboard: https://github.com/improbable-eng/thanos/tree/master/examples/grafana
- Import Cortex dashboard: https://github.com/cortexproject/cortex/tree/master/docs/dashboards
# 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.
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