Skip to content

Commit

Permalink
compose file for setting up exporters
Browse files Browse the repository at this point in the history
to be used on different hosts than Prometheus host stefanprodan#5
  • Loading branch information
stefanprodan committed Nov 21, 2016
1 parent 7f50b34 commit c741124
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker-compose.exporters.yml
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"


0 comments on commit c741124

Please sign in to comment.