腾讯云 - 超级节点池metric采集
2023-12-14
- job_name: eklet
scrape_interval: 15s
honor_timestamps: true
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:
- role: pod
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
insecure_skip_verify: true
relabel_configs:
- source_labels: [__meta_kubernetes_pod_node_name]
separator: ;
regex: (eklet-subnet-.*)
action: keep
- source_labels: [__meta_kubernetes_pod_ip]
separator: ;
regex: (.*)
target_label: __address__
replacement: ${1}:9100
action: replace
- source_labels: [__meta_kubernetes_pod_name]
separator: ;
regex: (.*)
target_label: pod
replacement: ${1}
action: replace
- source_labels: [__meta_kubernetes_namespace]
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
- source_labels: [__meta_kubernetes_pod_annotation_tke_cloud_tencent_com_pod_type]
separator: ;
regex: (.*)
target_label: job
replacement: ${1}
action: replace
- source_labels: [__meta_kubernetes_pod_annotation_tke_cloud_tencent_com_pod_type]
separator: ;
regex: (.*)
target_label: endpoint
replacement: ${1}
action: replace
- source_labels: [__meta_kubernetes_pod_annotation_tke_cloud_tencent_com_pod_type]
separator: ;
regex: (.*)
target_label: service
replacement: ${1}
action: replace