Skip to main content

Locust Telemetry

Tests Release codecov License Docs

Locust Telemetry is a modular observability plugin for the Locust load-testing framework.

It emits structured telemetry from load tests so you can correlate request behavior with system metrics using modern observability tools.

📖 Full documentation: https://locust-telemetry.readthedocs.io/en/stable/index.html


Why Locust Telemetry?

Load testing is most effective when request-level metrics can be correlated with system signals like CPU, memory, network usage, and errors.

Locust Telemetry bridges this gap by exporting structured telemetry that integrates cleanly with existing observability stacks.


Key Features

  • Structured Telemetry Test lifecycle events, request metrics, and system metrics

  • Multiple Backends JSON logs or OpenTelemetry metrics

  • OpenTelemetry Native OTLP export to Prometheus, Grafana, Datadog, New Relic, and more

  • Distributed Support Works with Locust master–worker mode

  • Extensible Design Add custom recorders and instruments

Traces and spans are planned but not yet supported.


Installation

pip install locust-telemetry

Quick Start

1. Initialize the plugin

In your locustfile.py:

from locust_telemetry import entrypoint

entrypoint.initialize()

2. Run Locust with telemetry enabled

JSON telemetry (logs):

locust -f locustfile.py --testplan mytest --enable-telemetry-recorder json

OpenTelemetry metrics:

locust -f locustfile.py --testplan mytest --enable-telemetry-recorder otel

➡️ See the Configuration section in the docs for all available options.


Local Demo (Docker)

A complete local observability stack is provided to quickly try both JSON and OpenTelemetry telemetry:

git clone https://github.com/platform-crew/locust-telemetry.git
cd locust-telemetry/examples/local
make build && make up

📘 Full walkthrough: https://locust-telemetry.readthedocs.io/en/stable/examples.html


Dashboard Preview

JSON Telemetry (Loki / Grafana Logs) JSON Dashboard JSON Dashboard

OpenTelemetry Metrics (Prometheus / Grafana) OTel Dashboard OTel Dashboard


Contributing

Contributions are welcome! Please see contributing for guidelines.


Author

Swaroop Shubhakrishna Bhat (@ss-bhat)

Thanks to all contributors ❤️


License

Licensed under the Apache License 2.0. See LICENSE for details.

Metadata

Release files for locust-telemetry 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for locust-telemetry 2.1.2
File Size Uploaded Provenance Actions
locust_telemetry-2.1.2.tar.gz 2.6 MB With provenance Details for locust_telemetry-2.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for locust-telemetry 2.1.2
File Interpreter ABI Platform Actions
locust_telemetry-2.1.2-py3-none-any.whl Python 3 none any Details for locust_telemetry-2.1.2-py3-none-any.whl

Total release size: 2.7 MB

Release files / locust_telemetry-2.1.2.tar.gz

Download URL locust_telemetry-2.1.2.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
5adf62c467013b8be52c91e93ef6eaefd9c6df740c026c4efe9519849895616d
BLAKE2b-256 checksum
How to use checksums
504377f9bf77c34c6b97c195833e34a312c9cf15a5e6df2c977f902a1b6aebcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 15, 2025.

Transparency log

Release files / locust_telemetry-2.1.2-py3-none-any.whl

Download URL locust_telemetry-2.1.2-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8009aa343f074773cf1f9132de9d3734b7d04965f7b124e302a2ac7e1cdef971
BLAKE2b-256 checksum
How to use checksums
c8d2ea910503e9bab508aa4bf70ab91eac697e54ba1e1adcc35a62072779e2d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 15, 2025.

Transparency log

Security for locust-telemetry 2.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for locust_telemetry-2.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 15, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page