cadvisor/deploy/kubernetes/overlays/examples/cadvisor-args.yaml
George Angel 63d82dd12e Do not disable disk and network metrics (#2236)
* Do not disable disk and network metrics, and disable sched and process metrics
2019-05-22 17:47:09 -07:00

21 lines
889 B
YAML

# 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, 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:
name: cadvisor
spec:
template:
spec:
containers:
- name: cadvisor
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,process,sched,tcp,udp # enable only diskIO, cpu, memory, network, disk
- --docker_only # only show stats for docker containers