Coder Social home page Coder Social logo

load-testing's Introduction

locust-influxdb-boilerplate

LocustIO base project with a custom influxDB listener.

Instructions

Create and activate a virtual environment

python3 -m venv venv

for linux and mac

source venv/bin/activate

for windows

venv\Scripts\activate.bat
pip install -r requirements.txt

Execute the script

locust

The before command utilizes the locust.conf file to determine the test file and test execution configuration (i.e. url, number or users, etc).

InfluxDB with Grafana

We have included a docker-compose.yml file that can be used to spin a reporting setup in case you don't have one.

Make sure you have docker and docker-compose installed and just run:

docker-compose up

Configuration

All is automatically setup at runtime in the docker-compose.yml. You could add additional dashboards in the example/grafana/dashboards/ folder.

Use

Once grafana container is running, open the following link: https://localhost:5001 or https://PUBLIC_IP:5001

We have provided a custom dashboard for you example/grafana/dashboards/locust-grafana-dashboard.json that just works out of the box with the locust-events that the listener will emmit.

Reference

https://github.com/pjcalvo/locust-influxdb-listener

load-testing's People

Contributors

lsolier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.