Skip to content

Commit 6cf8000

Browse files
authored
Add necessary information to quick start (#40)
1 parent 445d9d4 commit 6cf8000

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,33 @@ This package is available for Docker:
1414

1515
2. 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

0 commit comments

Comments
 (0)