forked from stefanprodan/dockprom
-
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.
compose file for setting up exporters
to be used on different hosts than Prometheus host stefanprodan#5
- Loading branch information
1 parent
7f50b34
commit c741124
Showing
1 changed file
with
30 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,30 @@ | ||
version: '2' | ||
|
||
services: | ||
|
||
nodeexporter: | ||
image: prom/node-exporter | ||
container_name: nodeexporter | ||
restart: unless-stopped | ||
ports: | ||
- 9100:9100 | ||
network_mode: host | ||
labels: | ||
org.label-schema.group: "monitoring" | ||
|
||
cadvisor: | ||
image: google/cadvisor:v0.24.1 | ||
container_name: cadvisor | ||
volumes: | ||
- /:/rootfs:ro | ||
- /var/run:/var/run:rw | ||
- /sys:/sys:ro | ||
- /var/lib/docker/:/var/lib/docker:ro | ||
restart: unless-stopped | ||
ports: | ||
- 8080:8080 | ||
network_mode: host | ||
labels: | ||
org.label-schema.group: "monitoring" | ||
|
||
|