monitoring/cadvisor: тюнинг CPU + фикс зомби-лика
housekeeping 30s, docker_only, отключены дорогие метрики, init:true для reaping healthcheck-wget. На fr1 дало 231%→14% CPU. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -72,6 +72,15 @@ services:
|
||||
image: gcr.io/cadvisor/cadvisor:latest
|
||||
container_name: cadvisor
|
||||
restart: unless-stopped
|
||||
# init: true — pid1-reaper, иначе healthcheck-wget копятся зомбями (образ без init)
|
||||
init: true
|
||||
# Дефолт cadvisor: housekeeping 1s + все метрики → ~2 ядра на 8-ядерном хабе.
|
||||
# Реже опрос + только docker-контейнеры + отключены дорогие/ненужные метрики.
|
||||
command:
|
||||
- '--housekeeping_interval=30s'
|
||||
- '--docker_only=true'
|
||||
- '--store_container_labels=false'
|
||||
- '--disable_metrics=percpu,disk,diskIO,tcp,udp,advtcp,sched,process,hugetlb,referenced_memory,cpu_topology,resctrl'
|
||||
privileged: true
|
||||
devices:
|
||||
- /dev/kmsg
|
||||
|
||||
Reference in New Issue
Block a user