Skip to main content

Report locust metrics to influxdb.

Project description

locust_influx

Send information about locust requests to InfluxDB and follow the progress through Grafana charts.

Test and taste it locally

Start an InfluxDB container locally:

docker run -d --name influxdb -d -p 8086:8086 influxdb

Start a Grafana container locally:

docker run -d --name grafana -d -p 3000:3000 grafana/grafana

Crete a new python virtual environment and install locust_influx:

pip install locust_influx

Run the example locustfile contained in this repo (Change the host to point to desired one):

locust -f ./locustfile.py --no-web --clients 10 --hatch-rate 1 --run-time 60s --host http://localhost:8080

Open your local Grafana in the browser at http://localhost:3000/

Import the example dashboard from locust_dashboard.json file.

Locust dashboard in grafana

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for locust-influx, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size locust_influx-0.2.4-py3-none-any.whl (7.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size locust_influx-0.2.4.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page