5.2 Setup Environment

Exercise

Start the Gateway: In the Gateway terminal run:

../otelcol --config=gateway.yaml

Start the Agent: In the Agent terminal run:

../otelcol --config=agent.yaml

Start the Load Generator: In the Loadgen terminal window, execute the following command to start the load generator with JSON enabled:

../loadgen -logs -json -count 5

The loadgen will write 5 log lines to ./quotes.log in JSON format.