diff --git a/monitoring/docker-compose.monitoring.yml b/monitoring/docker-compose.monitoring.yml index 17178dc..7f5c863 100644 --- a/monitoring/docker-compose.monitoring.yml +++ b/monitoring/docker-compose.monitoring.yml @@ -82,6 +82,7 @@ services: - prometheus_data:/prometheus networks: - monitoring + - shared restart: unless-stopped grafana: @@ -130,10 +131,12 @@ services: restart: unless-stopped # -------------------------------------------------------------- exporters -- + # Linux-host only (see cadvisor note): local runs skip it via the profile. node-exporter: image: prom/node-exporter:v1.9.1 container_name: monitoring-node-exporter mem_limit: 32m + profiles: ["host-metrics"] command: - --path.rootfs=/host volumes: @@ -155,10 +158,15 @@ services: - shared restart: unless-stopped + # Linux-host only: the rootfs bind mounts fail on Docker Desktop (Windows/macOS). + # VPS: docker compose -f monitoring/docker-compose.monitoring.yml --env-file .env \ + # --profile host-metrics up -d + # Local: started WITHOUT the profile — per-container metrics are simply absent. cadvisor: image: gcr.io/cadvisor/cadvisor:v0.49.1 container_name: monitoring-cadvisor mem_limit: 128m + profiles: ["host-metrics"] privileged: true devices: - /dev/kmsg diff --git a/monitoring/loki/loki-config.yml b/monitoring/loki/loki-config.yml index 096bdcf..7d2ec2a 100644 --- a/monitoring/loki/loki-config.yml +++ b/monitoring/loki/loki-config.yml @@ -28,7 +28,7 @@ limits_config: # Keep the log store bounded — this box shares 8 GB RAM / limited disk. retention_period: 14d ingestion_rate_mb: 4 - ingestion_burstsize_mb: 8 + ingestion_burst_size_mb: 8 max_query_series: 500 compactor: