WASP - Try It Out Quickly
Prerequisites
Ensure you have the following installed:
Install Dependencies with Nix
To install dependencies with Nix, simply execute:
nix develop
Running Grafana and Loki Tests
Assuming you have already started and configured the local observability stack, you can run sample Loki and Grafana tests with:
make test_loki
Once the test is running, you can view the results in the dashboard.
warning
If deploying to your own Grafana instance, verify the DASHBOARD_FOLDER
and DASHBOARD_NAME
.
Defaults are the LoadTests
directory, and the dashboard is named Wasp
.
Running Pyroscope Tests
If Grafana, Loki, and Pyroscope are already running, you can execute sample Pyroscope tests with:
make test_pyro_rps
or
make test_pyro_vu
During the test, you can view the results in the Pyroscope dashboard.
Additional Debugging Option
You can also add the -trace trace.out
flag when running any of your tests with go test
for additional tracing information.