53 lines
2 KiB
Text
53 lines
2 KiB
Text
# Read metrics from the Kubernetes api
|
|
[[inputs.kube_inventory]]
|
|
## URL for the Kubernetes API.
|
|
## If empty in-cluster config with POD's service account token will be used.
|
|
# url = ""
|
|
|
|
## URL for the kubelet, if set it will be used to collect the pods resource metrics
|
|
# url_kubelet = "http://127.0.0.1:10255"
|
|
|
|
## Namespace to use. Set to "" to use all namespaces.
|
|
# namespace = "default"
|
|
|
|
## Node name to filter to. No filtering by default.
|
|
# node_name = ""
|
|
|
|
## Use bearer token for authorization.
|
|
## Ignored if url is empty and in-cluster config is used.
|
|
# bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"
|
|
|
|
## Set response_timeout (default 5 seconds)
|
|
# response_timeout = "5s"
|
|
|
|
## Optional Resources to exclude from gathering
|
|
## Leave them with blank with try to gather everything available.
|
|
## Values can be - "daemonsets", deployments", "endpoints", "ingress",
|
|
## "nodes", "persistentvolumes", "persistentvolumeclaims", "pods", "services",
|
|
## "statefulsets"
|
|
# resource_exclude = [ "deployments", "nodes", "statefulsets" ]
|
|
|
|
## Optional Resources to include when gathering
|
|
## Overrides resource_exclude if both set.
|
|
# resource_include = [ "deployments", "nodes", "statefulsets" ]
|
|
|
|
## selectors to include and exclude as tags. Globs accepted.
|
|
## Note that an empty array for both will include all selectors as tags
|
|
## selector_exclude overrides selector_include if both set.
|
|
# selector_include = []
|
|
# selector_exclude = ["*"]
|
|
|
|
## Optional TLS Config
|
|
## Trusted root certificates for server
|
|
# tls_ca = "/path/to/cafile"
|
|
## Used for TLS client certificate authentication
|
|
# tls_cert = "/path/to/certfile"
|
|
## Used for TLS client certificate authentication
|
|
# tls_key = "/path/to/keyfile"
|
|
## Send the specified TLS server name via SNI
|
|
# tls_server_name = "kubernetes.example.com"
|
|
## Use TLS but skip chain & host verification
|
|
# insecure_skip_verify = false
|
|
|
|
## Uncomment to remove deprecated metrics.
|
|
# fieldexclude = ["terminated_reason"]
|