more alloy annoying
This commit is contained in:
@@ -87,6 +87,7 @@ services:
|
||||
alloy:
|
||||
image: grafana/alloy:latest
|
||||
container_name: alloy
|
||||
hostname: localhost # Set a proper hostname
|
||||
volumes:
|
||||
- ./config/config.alloy:/etc/alloy/config.alloy
|
||||
- /proc:/host/proc:ro # CRITICAL - must be mounted at /host/proc
|
||||
@@ -101,6 +102,8 @@ services:
|
||||
- "12345:12345"
|
||||
privileged: true # CRITICAL for accessing system metrics
|
||||
pid: "host" # CRITICAL for accessing process metrics
|
||||
environment:
|
||||
- HOSTNAME=localhost # Explicitly set the hostname for metrics
|
||||
networks:
|
||||
- monitoring
|
||||
|
||||
|
||||
Reference in New Issue
Block a user