A locust exporter for prometheus, forked from mbolek/locust_exporter
This is a simple exporter for http://locust.io metrics. You get all the necessary details about current tests and the state of the locust.
Errors and requests stats are added with the method and path labels - BE CAREFUL - if you have a lot of endpoints. It is probably better to group the endpoints in your locustfile (please see: http://docs.locust.io/en/latest/writing-a-locustfile.html#grouping-requests-to-urls-with-dynamic-parameters).
This project is available as a pre-built container image.
docker pull ghcr.io/ollytheninja/locust_exporter
This project uses UV.
- Install uv
- run
uv sync
- You can now
uv run locust_exporter.py <listen_port> <locust_host:port>
Run the exporter with:
./locust_exporter.py
Environment Variable | Description | Default |
---|---|---|
LOCUST_URI |
The locust address to connect to | http://localhost:8089 |
LISTEN_PORT |
The port the exporter will listen on | 8088 |
This project is forked from mbolek/locust_exporter
Includes cherry-picked contributions to the original project: