The following dashboards are provided for use with data from the Telegraf kubernetes input.
The following input plugin configuration is required to provide the data for these dashboards.
[[inputs.system]]
# The system input is needed to get the number of CPU cores.
[[inputs.kubernetes]]
# URL for the kubelet
url = "https://192.0.2.11:10250"
# Use bearer token for authorization
#bearer_token = /path/to/bearer/token
# Set response_timeout (default 5 seconds)
#response_timeout = "5s"
# Optional TLS Config
#tls_ca = /path/to/cafile
tls_cert = '/etc/kubernetes/pki/kubelet-client.crt'
tls_key = '/etc/kubernetes/pki/kubelet-client.key'
insecure_skip_verify = true
NOTE: The read-only port 10255 is deprecated in more recent versions of Kubernetes. You will need to use the secure port, 10250. This requires that you configure Kubernetes security to allow for the use of either a bearer token or certificates for access.