Configuration
The core configuration of Locust remains unchanged. However, this plugin introduces a few additional environment variables.
To view all available locust configuration, please refer here or use below command
$locust --help
Warning
Since Locust does not currently support plugin-specific options, locust-telemetry
configuration variables will not appear in the --help
output. Support for plugin options is planned for a future release. For now please refer below table.
CLI |
Environment Variable |
Default |
Required |
Plugin |
Description |
|---|---|---|---|---|---|
|
|
N/A |
Yes |
json / otel |
Unique identifier for the test run |
|
|
|
No |
json / otel |
Telemetry recorder to use: |
|
|
|
No |
json / otel |
Interval (in seconds) for exporting telemetry metrics |
|
|
|
No |
json / otel |
Interval (in seconds) for system usage monitoring |
|
|
N/A |
No |
otel |
OTLP gRPC endpoint for exporting OpenTelemetry metrics |
|
|
|
No |
otel |
Use insecure (non-TLS) connection for the OTLP exporter |
The package also provides an entry point that can be used for auto discovery and loading. However, this requires corresponding changes on the Locust side.
[project.entry-points."locust_plugins"]
telemetry_locust = "locust_telemetry.entrypoint"