From 8b49b343132fa4b386773ee17c37b40c91610a8f Mon Sep 17 00:00:00 2001 From: Leandro Ferreira Date: Wed, 1 Jun 2022 14:52:43 -0300 Subject: [PATCH] Add load with jmeter --- docker-compose.yml | 22 +++ load/script.jmx | 398 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 420 insertions(+) create mode 100644 load/script.jmx diff --git a/docker-compose.yml b/docker-compose.yml index ede0939..3860535 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -68,3 +68,25 @@ services: APPDYNAMICS_JAVA_AGENT_REUSE_NODE_NAME_PREFIX: "appd-java-basic-node" depends_on: - otel-collector + jmeter-java: + image: leandrovo/jmeter:1.0 + container_name: jmeter-appd + restart: always + volumes: + - ${PWD}/load:/opt/jmeter/scripts + environment: + petclinic_host: "appd-java-basic" + petclinic_port: "8080" + depends_on: + - appd-java-basic + jmeter-otel: + image: leandrovo/jmeter:1.0 + container_name: jmeter-otel + restart: always + volumes: + - ${PWD}/load:/opt/jmeter/scripts + environment: + petclinic_host: "otel-java-basic" + petclinic_port: "8080" + depends_on: + - otel-java-basic diff --git a/load/script.jmx b/load/script.jmx new file mode 100644 index 0000000..6e3e221 --- /dev/null +++ b/load/script.jmx @@ -0,0 +1,398 @@ + + + + + + false + false + + + + + + + + + + petclinic_host + ${__groovy(System.getenv('petclinic_host'),)} + = + + + petclinic_port + ${__groovy(System.getenv('petclinic_port'),)} + = + + + + + + + + + + + + + + 6 + + + + + + + false + false + + + + continue + + false + -1 + + 1 + 1 + 1370726934000 + 1370726934000 + false + + + true + + + + + + + ${petclinic_host} + ${petclinic_port} + http + + / + GET + true + false + true + false + + + + + + + + + Accept-Language + en-US,en;q=0.5 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 + + + + + + + + + + ${petclinic_host} + ${petclinic_port} + http + + /owners/find + GET + true + false + true + false + + + + + + + + + Referer + http://10.36.128.93:8080/petclinic/ + + + Accept-Language + en-US,en;q=0.5 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 + + + + + + + + + + ${petclinic_host} + ${petclinic_port} + http + + /owners?lastName= + GET + true + false + true + false + + + + + + + + + Referer + http://10.36.128.93:8080/petclinic/ + + + Accept-Language + en-US,en;q=0.5 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 + + + + + + + + + + ${petclinic_host} + ${petclinic_port} + http + + /owners/1 + GET + true + false + true + false + + + + + + + + + Referer + http://10.36.128.93:8080/petclinic/ + + + Accept-Language + en-US,en;q=0.5 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 + + + + + + + + + + ${petclinic_host} + ${petclinic_port} + http + + /vets.html + GET + true + false + true + false + + + + + + + + + Referer + http://10.36.128.93:8080/petclinic/ + + + Accept-Language + en-US,en;q=0.5 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 + + + + + + + + + + ${petclinic_host} + ${petclinic_port} + http + + /oups + GET + true + false + true + false + + + + + + + + + Referer + http://10.36.128.93:8080/petclinic/ + + + Accept-Language + en-US,en;q=0.5 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate + + + User-Agent + Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 + + + + + + + 0 + 100.0 + + + + + false + + saveConfig + + + true + true + true + + true + true + true + false + false + true + false + false + false + false + true + false + false + true + true + 0 + true + true + true + true + + + + + + + +