|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
version: '3.2' |
|
|
|
|
version: '3.1' |
|
|
|
|
|
|
|
|
|
volumes: |
|
|
|
|
prometheus_data: {} |
|
|
|
@ -11,7 +11,7 @@ networks:
@@ -11,7 +11,7 @@ networks:
|
|
|
|
|
services: |
|
|
|
|
|
|
|
|
|
prometheus: |
|
|
|
|
image: prom/prometheus |
|
|
|
|
image: prom/prometheus:v2.0.0 |
|
|
|
|
volumes: |
|
|
|
|
- ./prometheus/:/etc/prometheus/ |
|
|
|
|
- prometheus_data:/prometheus |
|
|
|
@ -38,15 +38,9 @@ services:
@@ -38,15 +38,9 @@ services:
|
|
|
|
|
node-exporter: |
|
|
|
|
image: prom/node-exporter |
|
|
|
|
volumes: |
|
|
|
|
- type: bind |
|
|
|
|
source: /proc |
|
|
|
|
target: /host/proc |
|
|
|
|
- type: bind |
|
|
|
|
source: /sys |
|
|
|
|
target: /host/sys |
|
|
|
|
- type: bind |
|
|
|
|
source: / |
|
|
|
|
target: /rootfs |
|
|
|
|
- /proc:/host/proc |
|
|
|
|
- /sys:/host/sys |
|
|
|
|
- /:/rootfs |
|
|
|
|
command: |
|
|
|
|
- '--path.procfs=/host/proc' |
|
|
|
|
- '--path.sysfs=/host/sys' |
|
|
|
|