[bearer_token_file:/path/to/bearer/token/file]# 配置scrape请求的TLS设置。tls_config:[<tls_config>]# 可选的代理URL。[proxy_url:<string>]# Azure服务发现配置列表。azure_sd_configs:[-<azure_sd_config>...]# Consul服务发现配置列表。consul_sd_configs:[-<consul_sd_config>...]# DNS服务发现...
- job_name:'kubernetes-apiserver' #kubernetes_sd_configs:#基于 kubernetes_sd_configs 实现服务发现-role: endpoints#发现 endpoints,还有 node svc pod ingress等其他rolescheme: https#当前 jod 使用的发现协议tls_config:#证书配置ca_file:/var/run/secrets/kubernetes.io/serviceaccount/ca.crt#容器里的证书路...
metrics_path:/metrics/cadvisor# 采集容器 cadvisor 监控数据 tls_config: insecure_skip_verify:true# tke 的 kubelet 使用自签证书,忽略证书校验 authorization: credentials_file:/var/run/secrets/kubernetes.io/serviceaccount/token kubernetes_sd_configs: -role:node relabel_configs: -source_labels:[__meta_k...
2.7 file_sd_config 2.8 dns_sd_config 2.9 gce_sd_config 2.10 kubernetes_sd_config 2.11 marathon_sd_config 2.12 nerve_sd_config 2.13 serverset_sd_config 2.14 triton_sd_config 2.15 static_config static_config允许指定目标列表和它们的公共标签集,这是在scrape配置中指定静态目标的规范方法。 # 静态配置...
tls_config: ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token kubernetes_sd_configs: - role: node relabel_configs: - action: labelmap regex: __meta_kubernetes_node_label_(.+) - target_label: __address__ ...
tls_config: insecure_skip_verify:truekubernetes_sd_configs: - role:nodebearer_token_file: k8s02_token#步骤1中创建的token文件api_server: https://192.168.0.147:5443 tls_config: insecure_skip_verify:truerelabel_configs: - target_label: __address__ ...
1.2<tls_config> tls_config允许配置TLS连接。 # 用于验证API服务器证书的CA证书。[ca_file:<filename>]# 用于服务器的客户端证书身份验证的证书和密钥文件。[cert_file:<filename>][key_file:<filename>]# ServerName扩展名,用于指示服务器的名称。# https://tools.ietf.org/html/rfc4366#section-3.1[serv...
# Configures the TLS settings. tls_config: [ <tls_config> ] # Optional proxy URL. [ proxy_url: <string> ] 五、<tls_config> tls_config允许配置TLS连接。 # CA certificate to validate the server certificate with.[ca_file:<filepath>]# Certificate and key files for client cert authentication...
tlsConfig:用于指定TLS配置,即目标服务的证书配置。其中caFile: /etc/prometheus/secrets/etcd-ssl/etcd-ca.pem:指定目标服务的CA证书路径;certFile: /etc/prometheus/secrets/etcd-ssl/etcd.pem:指定目标服务的TLS证书路径;keyFile: /etc/prometheus/secrets/etcd-ssl/etcd-key.pem:指定目标服务的TLS证书私钥路径;...
tls_config: ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt insecure_skip_verify: true bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token relabel_configs: - action: labelmap regex: __meta_kubernetes_node_label_(.+) ...