Skip to content

Commit 8ccd403

Browse files
committed
Fixed fetching Locust image
1 parent de9b969 commit 8ccd403

File tree

1 file changed

+3
-5
lines changed
  • content/en/other/pet-clinic

1 file changed

+3
-5
lines changed

content/en/other/pet-clinic/apm.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,16 @@ sudo tail -f /var/log/syslog
5252

5353
You can validate if the application is running by visiting `http://<VM_IP_ADDRESS>:8080`.
5454

55+
Once your validation is complete you can stop the application by pressing `Ctrl-c`.
56+
5557
## 2. Generating Traffic
5658

5759
Next we will start a Docker container running Locust that will generate some simple traffic to the PetClinic application. Locust is a simple load testing tool that can be used to generate traffic to a web application.
5860

5961
```bash
60-
docker run --network="host" -d -p 8089:8089 -v /home/ubuntu/workshop/petclinic:/mnt/locust locustio/locust -f /mnt/locust/locustfile.py --headless -u 10 -r 3 -H http://127.0.0.1:8080
62+
docker run --network="host" -d -p 8089:8089 -v /home/ubuntu/workshop/petclinic:/mnt/locust docker.io/locustio/locust -f /mnt/locust/locustfile.py --headless -u 10 -r 3 -H http://127.0.0.1:8080
6163
```
6264

63-
Then you can visit the Splunk APM UI and examine the application components, traces, etc. **Hamburger Menu → APM → Explore**.
64-
65-
Once your validation is complete you can stop the application by pressing `Ctrl-c`.
66-
6765
## 3. Enabling AlwaysOn Profiling and Metrics
6866

6967
To enable CPU and Memory Profiling on the application we can start the application by passing `splunk.profiler.enabled=true` and for metrics pass `splunk.metrics.enabled=true`. Make sure the application is stopped and run the following command to enable metrics and profiling.

0 commit comments

Comments
 (0)