6/11
This commit is contained in:
parent
bc9e58aea9
commit
8a4596576e
@ -1,4 +1,3 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
@ -47,8 +46,24 @@ services:
|
||||
- /var/log:/var/log:ro
|
||||
command:
|
||||
- -config.file=/etc/promtail/config.yaml
|
||||
#depends_on:
|
||||
# - loki
|
||||
networks:
|
||||
- observability
|
||||
node_exporter:
|
||||
image: prom/node-exporter:latest
|
||||
container_name: node-exporter
|
||||
restart: unless-stopped
|
||||
pid: "host"
|
||||
network_mode: "host"
|
||||
volumes:
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
command:
|
||||
- '--path.procfs=/host/proc'
|
||||
- '--path.sysfs=/host/sys'
|
||||
- '--collector.filesystem.ignored-mount-points="^/(sys|proc|dev|host|etc)($$|/)"'
|
||||
volumes:
|
||||
grafana-data:
|
||||
networks:
|
||||
|
||||
@ -6,10 +6,19 @@ scrape_configs:
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
#- job_name: 'node_exporter_vmservices'
|
||||
# static_configs:
|
||||
# - targets: ['192.168.56.31:9100']
|
||||
- job_name: 'observabilite'
|
||||
static_configs:
|
||||
- targets: ['192.168.56.16:9100'] #ip de la machine observabilite
|
||||
|
||||
- job_name: 'scaphandre'
|
||||
static_configs:
|
||||
- targets: ['192.168.56.16:8080']
|
||||
fallback_scrape_protocol: "PrometheusText1.0.0"
|
||||
|
||||
- job_name: 'apache_vmservices'
|
||||
static_configs:
|
||||
- targets: ['192.168.56.32:9117'] #ip vmService
|
||||
- targets: ['192.168.56.17:9117'] #ip vmService
|
||||
|
||||
- job_name: 'vms'
|
||||
static_configs:
|
||||
- targets: ['192.168.56.18:9100'] #ip vmHardware
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user