Thanos repository contains an interactive example, which will spin up an environment for you locally in Docker containers.
A prerequisite for running the example is having Docker installed already.
To run the example, run the following commands:
- Build the Thanos image locally by running
make docker
. - Navigate to the
examples/interactive
directory. - Comment this line in the file
interactive_test.go
. go test interactive_test.go -test.timeout=9999m
.
The example will generate some data for you to play with and store it in data
directory for subsequent tests runs.
You can choose from different hardcoded generation profiles, which will give you different amount of data. You can change this by setting the BLOCK_PROFILE
environment variable to a selected profile name. You can find the available profiles here (we use thanosbench
tool to generate our test data).
The default profile is continuous-30d-tiny
which will give you test data for 5 different applications with single metric. If you really want to ramp it up, you can use continuous-1w-small
, which will give you test data for 100 applications with 100 metrics for each (BEWARE: Generating this much data requires a lot of RAM, make sure you have at least 8 GB available, otherwise generation might fail).