mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
🐛 fix(monitoring): adjust node-exporter config for macOS Docker
- Remove rslave mount that doesn't work on macOS - Use selective collectors instead of defaults - Note: This monitors the Docker VM metrics, not host Mac Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6a725a2b73
commit
816062b07d
1 changed files with 10 additions and 3 deletions
|
|
@ -1241,11 +1241,18 @@ services:
|
|||
image: prom/node-exporter:v1.7.0
|
||||
container_name: mana-mon-node-exporter
|
||||
restart: always
|
||||
# macOS Docker runs in a Linux VM, so we can only monitor the VM's metrics
|
||||
# For full host metrics on macOS, install node_exporter natively
|
||||
command:
|
||||
- '--path.rootfs=/host'
|
||||
- '--collector.disable-defaults'
|
||||
- '--collector.cpu'
|
||||
- '--collector.meminfo'
|
||||
- '--collector.loadavg'
|
||||
- '--collector.filesystem'
|
||||
- '--collector.netdev'
|
||||
- '--collector.time'
|
||||
- '--collector.uname'
|
||||
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
||||
volumes:
|
||||
- '/:/host:ro,rslave'
|
||||
ports:
|
||||
- "9100:9100"
|
||||
healthcheck:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue