ajout du TP5/6
This commit is contained in:
17
TP5-6/docker-compose-cadvisor.yml
Normal file
17
TP5-6/docker-compose-cadvisor.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
cadvisor:
|
||||
image: google/cadvisor:latest
|
||||
ports:
|
||||
- 8080:8080
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /:/rootfs:ro
|
||||
- /var/run:/var/run:rw
|
||||
- /sys:/sys:ro
|
||||
- /var/lib/docker/:/var/lib/docker:ro*
|
||||
|
||||
node-exporter:
|
||||
image: prom/node-exporter:latest
|
||||
ports:
|
||||
- 9100:9100
|
||||
restart: unless-stopped
|
6
TP5-6/docker-compose-grafana.yml
Normal file
6
TP5-6/docker-compose-grafana.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
ports:
|
||||
- "3000:3000"
|
||||
restart: unless-stopped
|
8
TP5-6/docker-compose-prometheus.yml
Normal file
8
TP5-6/docker-compose-prometheus.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./prometheus/:/etc/prometheus/
|
||||
ports:
|
||||
- 9090:9090
|
19
TP5-6/prometheus/prometheus.yml
Normal file
19
TP5-6/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
global:
|
||||
scrape_interval: 1m
|
||||
evaluation_interval: 1m
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'prometheus'
|
||||
|
||||
scrape_interval: 1m
|
||||
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: 'node'
|
||||
static_configs:
|
||||
- targets: ['node-exporter:9100']
|
||||
|
||||
- job_name: 'cadvisor'
|
||||
static_configs:
|
||||
- targets: ['cadvisor:8080']
|
Reference in New Issue
Block a user