I have been running telegraf with
inputs.docker within kubernetes for about 20 months. This is almost perfect. However, when having short running pods like kubernetes-cronjobs (sometimes their lifetime is only some seconds), the plugin does not get their metrics. (see Question about telegraf: docker-container-status / exitcode for details)
Actually, I am searching for the recomended way to get the “real” kubernetes-metrics.
I find the
inputs.kubernetes-plugin and I am wondering how to get the token from kubernetes. Other docs like https://github.com/influxdata/helm-charts/blob/master/charts/telegraf/values.yaml do not use the
I have a k8-cluster with one master and three nodes (workers).
Looking forward to your tips. Thanks.