fix scrape_with_token yaml

This commit is contained in:
kongfei 2022-07-17 15:09:23 +08:00
parent 0d93aa9081
commit 6666255261
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ scrape_configs:
metrics_path: "/metrics" metrics_path: "/metrics"
kubernetes_sd_configs: kubernetes_sd_configs:
- role: endpoints - role: endpoints
# apiserver lvs address or service ip:port eg, https://172.31.0.1:443 # apiserver lvs address or service ip:port eg. https://172.31.0.1:443
api_server: "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}" api_server: "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}"
bearer_token_file: /path/to/token bearer_token_file: /path/to/token
tls_config: tls_config:
@ -33,10 +33,10 @@ scrape_configs:
metrics_path: "/metrics" metrics_path: "/metrics"
kubernetes_sd_configs: kubernetes_sd_configs:
- role: endpoints - role: endpoints
# apiserver lvs address or service ip:port eg, https://172.31.0.1:443 # apiserver lvs address or service ip:port eg. https://172.31.0.1:443
api_server: "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}" api_server: "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}"
bearer_token_file: /path/to/token
tls_config: tls_config:
bearer_token_file: /path/to/token
insecure_skip_verify: true insecure_skip_verify: true
scheme: http scheme: http
relabel_configs: relabel_configs: