This dashboard gives you a helpful starting point if you are using Telegraf to monitor your Kubernetes infrastructure with the DaemonSet pattern. You can find more information about this pattern in the InfluxData Helm Charts. Questions or comments, please let me know.
Collector Configuration Details
Technically you only need the Kubernetes input, but the following plugins are useful in general.
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.disk]]
ignore_fs = ["tmpfs", "devtmpfs", "devfs"]
[[inputs.diskio]]
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.system]]
[[inputs.kubernetes]]
url = "http://$HOSTNAME:10255"
bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"
insecure_skip_verify = true
If you are using the TICK charts for deploying this, you can add these to your values.yaml
file:
- cpu:
percpu: true
totalcpu: true
collect_cpu_time: false
- disk:
ignore_fs:
- "tmpfs"
- "devtmpfs"
- diskio:
- kernel:
- mem:
- processes:
- swap:
- system:
- kubernetes:
url: "http://$HOSTIP:10255"
bearer_token: "/var/run/secrets/kubernetes.io/serviceaccount/token"
insecure_skip_verify: true
- docker:
endpoint: "unix:///var/run/docker.sock"
timeout: "5s"
perdevice: true
total: false
docker_label_exclude:
- "annotation.kubernetes.io/*"