File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
77OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = ${ OTEL_EXPORTER_OTLP_ENDPOINT }
88OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = ${ OTEL_EXPORTER_OTLP_ENDPOINT }
99
10- # Load Generator
11- USERS = 10
12-
1310# Frontend
1411FRONTEND_PORT = 8080
1512FRONTEND_ADDR = frontend:${ FRONTEND_PORT }
@@ -51,6 +48,13 @@ FEATURE_FLAG_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_SERVICE_PORT}
5148FEATURE_FLAG_GRPC_SERVICE_PORT = 50053
5249FEATURE_FLAG_GRPC_SERVICE_ADDR = featureflagservice:${ FEATURE_FLAG_GRPC_SERVICE_PORT }
5350
51+ # Load Generator
52+ LOCUST_WEB_PORT = 8089
53+ LOCUST_USERS = 10
54+ LOCUST_HOST = http://${ FRONTEND_ADDR }
55+ LOCUST_AUTOSTART = true
56+ LOCUST_HEADLESS = false
57+
5458# Prometheus
5559PROMETHEUS_SERVICE_PORT = 9090
5660
Original file line number Diff line number Diff line change 33 {"pattern" : " ^http://localhost:3000" },
44 {"pattern" : " ^http://localhost:8080" },
55 {"pattern" : " ^http://localhost:8081" },
6+ {"pattern" : " ^http://localhost:8089" },
67 {"pattern" : " ^http://localhost:9090" },
78 {"pattern" : " ^http://localhost:16686" },
89 {"pattern" : " ^https://calendar.google.com/calendar" }
Original file line number Diff line number Diff line change @@ -75,3 +75,5 @@ significant modifications will be credited to OpenTelemetry Authors.
7575([ #245 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/245 ) )
7676* Added Frontend Instrumentation
7777([ #293 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/293 ) )
78+ * Enable Locust loadgen environment variable config options
79+ ([ #316 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/316 ) )
Original file line number Diff line number Diff line change @@ -341,9 +341,14 @@ services:
341341 build :
342342 context : ./
343343 dockerfile : ./src/loadgenerator/Dockerfile
344+ ports :
345+ - " ${LOCUST_WEB_PORT}:${LOCUST_WEB_PORT}"
344346 environment :
345- - FRONTEND_ADDR
346- - USERS
347+ - LOCUST_WEB_PORT
348+ - LOCUST_USERS
349+ - LOCUST_HOST
350+ - LOCUST_HEADLESS
351+ - LOCUST_AUTOSTART
347352 - OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
348353 - OTEL_SERVICE_NAME=loadgenerator
349354 - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ Once the images are built and containers are started you can access:
5050- Prometheus: < http://localhost:9090/ >
5151- Grafana: < http://localhost:3000/ >
5252- Feature Flags UI: < http://localhost:8081/ >
53+ - Load Generator UI: < http://localhost:8089/ >
5354
5455## Bring your own backend
5556
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ COPY ./src/loadgenerator/ ./
2020
2121RUN pip install --prefix="/usr/local/" -r ./requirements.txt
2222
23- ENTRYPOINT locust --host= "http://${FRONTEND_ADDR}" --headless -u "${USERS}"
23+ ENTRYPOINT locust
You can’t perform that action at this time.
0 commit comments