updated README and compose file
This commit is contained in:
parent
0dd341b1cf
commit
726a4d9741
@ -96,7 +96,7 @@ Several projects utilize this Prometheus stack. Here's the list of projects:
|
|||||||
|
|
||||||
## Swarm mode Configuration
|
## Swarm mode Configuration
|
||||||
|
|
||||||
edit file `docker-compose.yml` change `node.hostname = <hostname where alertmanager config file in>` to your swarm node name for both `alertmanager` and `prometheus`
|
Edit file `docker-compose.yml` change `node.hostname = <hostname where alertmanager or Prometheus config files are>` to your swarm node name for both `alertmanager` and `prometheus`
|
||||||
```
|
```
|
||||||
docker stack deploy -c docker-compose.yml monitor
|
docker stack deploy -c docker-compose.yml monitor
|
||||||
```
|
```
|
||||||
|
@ -35,7 +35,7 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.hostname == <hostname where the prometheus config file in>
|
- node.hostname == <hostname where the prometheus config files are located>
|
||||||
node-exporter:
|
node-exporter:
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
volumes:
|
volumes:
|
||||||
@ -64,7 +64,7 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.hostname == <hostname where alertmanager config file in>
|
- node.hostname == <hostname where alertmanager config files are located>
|
||||||
cadvisor:
|
cadvisor:
|
||||||
image: google/cadvisor
|
image: google/cadvisor
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user