Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions book/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ require (
github.com/testcontainers/testcontainers-go v0.42.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/term v0.40.0 // indirect
golang.org/x/term v0.43.0 // indirect
golang.org/x/time v0.11.0 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
Expand Down Expand Up @@ -144,16 +144,16 @@ require (
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
go.opentelemetry.io/otel v1.44.0 // indirect
go.opentelemetry.io/otel/metric v1.44.0 // indirect
go.opentelemetry.io/otel/trace v1.44.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/arch v0.11.0 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/net v0.51.0 // indirect
golang.org/x/crypto v0.51.0 // indirect
golang.org/x/net v0.55.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.34.0 // indirect
golang.org/x/sys v0.45.0 // indirect
golang.org/x/text v0.37.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/guregu/null.v4 v4.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
40 changes: 20 additions & 20 deletions book/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
- [Adding new storage]()
- [How to](./libs/wasp/how-to/overview.md)
- [Start local observability stack](./libs/wasp/how-to/start_local_observability_stack.md)
- [Try it out quickly](./libs/wasp/how-to/run_included_tests.md)
- [Chose between RPS and VUs](./libs/wasp/how-to/chose_rps_vu.md)
- [Configure requests per minute or hour](./libs/wasp/how-to/rps_per_minute.md)
- [Define NFRs and check alerts](./libs/wasp/how-to/define_nfr_check_alerts.md)
Expand Down
2 changes: 2 additions & 0 deletions book/src/libs/wasp/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites
* [Golang](https://go.dev/doc/install)
* [Just](https://github.com/casey/just)
* [Docker](https://docs.docker.com/get-docker/)

## Setup
To start writing tests, create a directory for your project with a `go.mod` file, then add the WASP package:
Expand Down
1 change: 0 additions & 1 deletion book/src/libs/wasp/how-to/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

In this section we will deal with the most common issues or questions:
* [How to start local observability stack?](./start_local_observability_stack.md)
* [How to try some tests quickly?](./run_included_tests.md)
* [How to chose between RPS and VUs?](./chose_rps_vu.md)
* [How to define NFRs and check alerts?](./define_nfr_check_alerts.md)
* [How to use labels?](./use_labels.md)
Expand Down
62 changes: 0 additions & 62 deletions book/src/libs/wasp/how-to/run_included_tests.md

This file was deleted.

75 changes: 13 additions & 62 deletions book/src/libs/wasp/how-to/start_local_observability_stack.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,28 @@
# WASP - How to Start Local Observability Stack

To execute all examples or tests locally, you need to configure a local observability stack. This stack includes **Loki**, **Grafana**, and **Pyroscope**.
To execute all examples or tests locally, you need to configure a local observability stack.

---
We have 2 versions of popular stacks: LGTM (Grafana, Loki, Prometheus) and VictoriaMetrics + OTEL (Grafana, VictoriaMetrics, VictoriaLogs, OTEL).

## Prerequisites

Ensure you have the following installed:
* [Docker](https://docs.docker.com/get-docker/)

---

## Grafana and Loki

To start the local observability stack, run the following command:
## LGTM

```bash
make start
just lgtm-up # from "wasp" directory
cd examples/profiles && WASP_LOG_SEND_METHOD=loki go test -v -run TestNodeMixed && cd -
just lgtm-down
```
Comment thread
skudasov marked this conversation as resolved.

This command will download and run Docker images for Loki and Grafana. Once completed, it will output something like:

```bash
Service account id: 2
Grafana token: "<grafana token>"
```
* [Dashboard](http://localhost:3000/d/wasp-loki/wasp-loki?orgId=1&from=now-5m&to=now&timezone=browser&var-go_test_name=$__all&var-gen_name=$__all&var-branch=$__all&var-commit=$__all&var-call_group=$__all&refresh=5s)

### Setting Up Environment Variables
Don't forget to remove the stack when you are done!

Next, set up the required environment variables.
> [!WARNING]
> Replace `<Grafana token>` with the token provided in the previous step.
## VictoriaMetrics + OTEL

```bash
export LOKI_TOKEN=
export LOKI_URL=http://localhost:3030/loki/api/v1/push
export GRAFANA_URL=http://localhost:3000
export GRAFANA_TOKEN=<Grafana token>
export DATA_SOURCE_NAME=Loki
export DASHBOARD_FOLDER=LoadTests
export DASHBOARD_NAME=Wasp
just victoria-up # from "wasp" directory
cd examples/profiles && WASP_LOG_SEND_METHOD=otel go test -v -run TestNodeMixed && cd -
just victoria-down
```
Comment thread
skudasov marked this conversation as resolved.

### Accessing Services

* Grafana: [http://localhost:3000/](http://localhost:3000/)
* Loki: [http://localhost:3030/](http://localhost:3030/)

### Stopping the Containers

To stop both containers, run:

```bash
make stop
```

---

## Pyroscope

To start Pyroscope, execute:

```bash
make pyro_start
```

> [!NOTE]
> Pyroscope is available at: [http://localhost:4040/](http://localhost:4040/)

### Stopping Pyroscope

To stop Pyroscope, run:

```bash
make pyro_stop
```
* [Dashboard](http://localhost:3000/d/wasp-victorialogs/wasp-victorialogs?orgId=1&from=now-5m&to=now&timezone=browser&var-go_test_name=$__all&var-gen_name=$__all&var-call_group=$__all&var-branch=$__all&var-commit=$__all&refresh=5s)
1 change: 1 addition & 0 deletions framework/clclient/gql/internal/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions framework/components/chiprouter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/smartcontractkit/chainlink-testing-framework/framework v0.15.8
github.com/testcontainers/testcontainers-go v0.42.0
golang.org/x/sync v0.20.0
google.golang.org/grpc v1.81.0
google.golang.org/grpc v1.81.1
)

require (
Expand Down Expand Up @@ -71,17 +71,17 @@ require (
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
go.opentelemetry.io/otel v1.44.0 // indirect
go.opentelemetry.io/otel/metric v1.44.0 // indirect
go.opentelemetry.io/otel/trace v1.44.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/crypto v0.51.0 // indirect
golang.org/x/exp v0.0.0-20260112195511-716be5621a96 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.35.0 // indirect
golang.org/x/net v0.55.0 // indirect
golang.org/x/sys v0.45.0 // indirect
golang.org/x/text v0.37.0 // indirect
golang.org/x/time v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading