Do not disable disk and network metrics (#2236)

* Do not disable disk and network metrics, and disable sched and process metrics
This commit is contained in:
George Angel 2019-05-23 01:47:09 +01:00 committed by David Ashpole
parent 9092e7bc18
commit 63d82dd12e

View File

@ -1,6 +1,7 @@
# This patch is an example of setting arguments for the cAdvisor container.
# This set of arguments mirrors what the kubelet currently uses for cAdvisor,
# enables only cpu, memory, and diskIO metrics, and shows only container metrics.
# enables only cpu, memory, diskIO, disk and network metrics, and shows only
# container metrics.
apiVersion: apps/v1 # for Kubernetes versions before 1.9.0 use apps/v1beta2
kind: DaemonSet
metadata:
@ -11,9 +12,9 @@ spec:
containers:
- name: cadvisor
args:
- --housekeeping_interval=10s # kubernetes default args
- --housekeeping_interval=10s # kubernetes default args
- --max_housekeeping_interval=15s
- --event_storage_event_limit=default=0
- --event_storage_age_limit=default=0
- --disable_metrics=percpu,disk,network,tcp,udp # enable only diskIO, cpu, memory
- --docker_only # only show stats for docker containers
- --disable_metrics=percpu,process,sched,tcp,udp # enable only diskIO, cpu, memory, network, disk
- --docker_only # only show stats for docker containers