File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,33 @@ This package is available for Docker:
1414
15152 . Run Locust Exporter
1616
17- ``` bash
18- docker run --net=host containersol/locust_exporter
19- ```
17+ with docker:
18+
19+ ``` bash
20+ docker run --net=host containersol/locust_exporter
21+ ```
22+
23+ or with docker-compose:
24+
25+ ` ` ` yaml
26+ version: " 3.0"
27+
28+ services:
29+ locust-exporter:
30+ image: containersol/locust_exporter
31+ network_mode: " host"
32+ ` ` `
33+
34+ 3. Modify ` prometheus.yml` to add target to Prometheus
35+
36+ ` ` ` yaml
37+ scrape_configs:
38+ - job_name: ' locust'
39+ static_configs:
40+ - targets: [' <LOCUST_IP>:9646' ]
41+ ` ` `
42+
43+ 4. Add dashboard to Grafana with ID [11985](https://grafana.com/grafana/dashboards/11985)
2044
2145# # Building and Running
2246
You can’t perform that action at this time.
0 commit comments