Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtroshin/showcase-performance-tests
Showcase Performance Tests
https://github.com/gtroshin/showcase-performance-tests
docker docker-compose grafana locust performance performance-testing prometheus
Last synced: about 2 months ago
JSON representation
Showcase Performance Tests
- Host: GitHub
- URL: https://github.com/gtroshin/showcase-performance-tests
- Owner: gtroshin
- Created: 2022-07-27T16:48:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-03T13:18:51.000Z (over 2 years ago)
- Last Synced: 2023-07-24T14:13:02.863Z (over 1 year ago)
- Topics: docker, docker-compose, grafana, locust, performance, performance-testing, prometheus
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Showcase Performance Tests
![Python 3.9.1](https://img.shields.io/badge/Python-3.9.1-green.svg)
![Locust 2.10.1](https://img.shields.io/badge/Locust-2.10.1-purple.svg)This project is designed to run performance tests using the Locust framework against the services with the following
profile:Number of users (peak concurrency): 4 \
Spawn rate (users started/second): 10 \
Duration (run time): 5 minutesAll the performance test information is available at the inbuilt [Locust charts](http://localhost:8089) and at
[custom Grafana dashboard](http://localhost:3000/d/0WllLp6mq/locust-test).Tests output the basic statistics and the results to the console and will exit with `1` status code if there were any
errors or failures in tests.Grafana's settings, including the data source and a dashboard pre-provisioned.
## Requirements
* Docker
* [Python 3.9.1+](https://www.python.org/downloads/release/python-3910/)## Development
To start all the services, run the following command in the project root folder:
docker-compose up -d && docker-compose logs --follow locust
To debug all the logs from services run:
docker-compose up
For the local test development outside docker environment, install the dependencies:
pip3 install -r requirements.txt
## Services and addresses
| Service | Address | Description |
|------------------|-------------------------------|--------------------------------------|
| Locust | http://localhost:8089 | Load testing tool |
| Exported Metrics | http://localhost:9646/metrics | Locust metrics exporter |
| Prometheus | http://localhost:9090 | Data source for Grafana |
| Grafana | http://localhost:3000 | Visualization and observability tool |