This commit is contained in:
Ornel_Zply 2025-11-06 12:55:16 +01:00
parent bc9e58aea9
commit 8a4596576e
2 changed files with 29 additions and 5 deletions

View File

@ -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:

View File

@ -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