Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 976 Bytes

11-load-generation.md

File metadata and controls

38 lines (23 loc) · 976 Bytes

Setup Load Generation for More Interesting Dashboards

The following approach was borrowed by the TSM demo which uses acme-fitness.

Requirements

  1. Local docker daemon

  2. Spring Pet Clinic

Steps

  1. Set environment variables for use in the following sections
export PETCLINIC_HOST=$(yq e .petclinic.host $PARAMS_YAML)
  1. Run locust via docker
docker run -p 8089:8089 -v $PWD:/mnt/locust locustio/locust -f /mnt/locust/traffic-generator/locustfile.py -H https://$PETCLINIC_HOST
  1. Access Locus UI
open http://localhost:8089
  1. Click on 'New Test' and provide the number of users to simulate. I used 10 users with hatch rate 4

Locust Test Setup Locust Running

  1. Check out your nice data flowing through on your custom TO dashboard

Custom TO Dashboard