42 lines
1.1 KiB
TOML
42 lines
1.1 KiB
TOML
# # collect interval
|
|
# interval = 15
|
|
|
|
[[instances]]
|
|
# # append some labels for series
|
|
# labels = { region="cloud", product="n9e" }
|
|
|
|
# # interval = global.interval * interval_times
|
|
# interval_times = 1
|
|
|
|
# URL for the kubelet
|
|
# url = "https://$HOSTIP:10250"
|
|
url = ""
|
|
|
|
gather_system_container_metrics = true
|
|
gather_node_metrics = true
|
|
gather_pod_container_metrics = true
|
|
gather_pod_volume_metrics = true
|
|
gather_pod_network_metrics = true
|
|
|
|
## Use bearer token for authorization. ('bearer_token' takes priority)
|
|
## If both of these are empty, we'll use the default serviceaccount:
|
|
## at: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
# bearer_token = "/path/to/bearer/token"
|
|
## OR
|
|
# bearer_token_string = "abc_123"
|
|
|
|
## Pod labels to be added as tags. An empty array for both include and
|
|
## exclude will include all labels.
|
|
# label_include = []
|
|
# label_exclude = ["*"]
|
|
|
|
## Set response_timeout (default 5 seconds)
|
|
# response_timeout = "5s"
|
|
|
|
## Optional TLS Config
|
|
use_tls = true
|
|
# tls_ca = "/etc/categraf/ca.pem"
|
|
# tls_cert = "/etc/categraf/cert.pem"
|
|
# tls_key = "/etc/categraf/key.pem"
|
|
## Use TLS but skip chain & host verification
|
|
insecure_skip_verify = true |