forked from shaonianyr/boomer_locust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0210409
commit 9360a15
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## Boomer_locust | ||
|
||
Boomer locust with prometheues and grafana example. Using docker-compose.yml. | ||
|
||
## Usage | ||
|
||
``` | ||
# get code | ||
git clone [email protected]:ShaoNianyr/boomer_locust.git | ||
# add venv | ||
python3 -m venv env . | ||
# activate venv | ||
source env/bin/activate | ||
# install locust | ||
pip3 install locust | ||
# vi prometheus_exporter.py | ||
targets: ['your_ip:8089'] # replace your real ip | ||
# install and run grafana & prometheus | ||
docker-compose up -d | ||
# run locust master | ||
locust --master -f prometheus_exporter.py | ||
# run goland slave | ||
go run baidu.go | ||
# view your urls | ||
grafana http://localhost:3000 | ||
locust http://localhost:8089 | ||
``` | ||
|
||
## View | ||
|
||
![code](code.png) | ||
|
||
![grafana](grafana.png) | ||
|
||
## Contributing | ||
|
||
[locust](https://github.com/locustio/locust) | ||
|
||
[boomer](https://github.com/myzhan/boomer) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.