https://github.com/subhamsarangi/minotaur
load testing, monitoring
https://github.com/subhamsarangi/minotaur
flask grafana locust prometheus python
Last synced: 5 months ago
JSON representation
load testing, monitoring
- Host: GitHub
- URL: https://github.com/subhamsarangi/minotaur
- Owner: subhamsarangi
- Created: 2024-11-29T16:28:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T17:09:42.000Z (over 1 year ago)
- Last Synced: 2025-07-26T04:58:30.956Z (12 months ago)
- Topics: flask, grafana, locust, prometheus, python
- Language: HTML
- Homepage:
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# minotaur
## flask, prometheus, grafana, locust
## load testing, monitoring
# user guide
## run flask server
`python app.py`
### check in browser at http://localhost:5000
## run proemtheus
### run it directly
`/home/homelander/minotaur/prometheus-2.40.0.linux-amd64/prometheus --config.file=/home/homelander/minotaur/prometheus-2.40.0.linux-amd64/prometheus.yml`
### or make a prometheus systemd service
- Create a systemd service file:
```
[Unit]
Description=Prometheus
After=network.target
[Service]
ExecStart=/home/user1/minotaur/prometheus-2.40.0.linux-amd64/prometheus --config.file=/home/user1/minotaur/prometheus-2.40.0.linux-amd64/prometheus.yml
Restart=always
User=user1
Group=user1
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
```
- Reload systemd to pick up the new service: After creating the service file, reload systemd:
`sudo systemctl daemon-reload`
- Start the Prometheus service: Start Prometheus using the systemd service:
`sudo systemctl start prometheus`
- Enable Prometheus to start on boot: To make Prometheus start automatically when the system boots:
`sudo systemctl enable prometheus`
- Check the status of Prometheus: To see if Prometheus is running properly:
`sudo systemctl status prometheus`
- Stop Prometheus: To stop the Prometheus service:
`sudo systemctl stop prometheus`
### check in browser at http://localhost:9090
## run grafana
`sudo systemctl start grafana-server`
### check in browser at http://localhost:3000
#### login using admin and admin
#### import a json or make a new dashboard
## run locust
`locust -f locustfile.py`
### check in browser at http://localhost:8089
## results


