Skip to content

hasansahinnn/Grafana-Locust_RealTime_Monitoring_Using_Docker

Repository files navigation

alt text

Installation

  • 1. Installing services using Docker Compose
  • 2. Locust Settings
  • 3. Prometheus Settings
  • 4. Grafana Settings


SOURCE : BLOG


1. Installing services using Docker Compose

After downloading the project, open the file path through the console and type the command
docker-compose up --scale worker = 4

2. Locust Settings

Locust is an open-source testing tool, which allows us to specify loading scenarios by a Python code.

Documentation : Locust

Locust access URL: localhost:8089
Note : locust_http.py : We write the url paths we want to see in Grafana to this file.
Note : If you use localhost in the 'Host Url' section and get an error, use your ip address

alt text



alt text



3. Prometheus Settings

Its main focus is to provide valid insight into system performance by providing a way for certain variables of that system to be monitored. We use Prometheus to show on graphana
Prometheus access URL: localhost:9090

Documentation : Prometheus


alt text



4. Grafana Settings

According to GrafanaLabs, Grafana is an open source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored. Note : You can use Grafana in databases such as Mysql.

Documentation : Grafana

Grafana access URL: localhost:3000
Username : admin
Password : admin

First, add prometheus database via Settings->Database Tab or URL localhost:3000/datasources. Prometheus Host: 192.168.3.2:9090 (use your own ip)

alt text


after adding the database, We import 'locust_dashboard.JSON' file for panel design.

alt text


Now you are ready to use it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages