Merge pull request #104 from kongfei605/scrape_k8s

fix scrape_with_token yaml
This commit is contained in:
kongfei605 2022-07-17 15:12:43 +08:00 committed by GitHub
commit 11d8b925ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ scrape_configs:
metrics_path: "/metrics"
kubernetes_sd_configs:
- 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}"
bearer_token_file: /path/to/token
tls_config:
@ -33,10 +33,10 @@ scrape_configs:
metrics_path: "/metrics"
kubernetes_sd_configs:
- 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}"
bearer_token_file: /path/to/token
tls_config:
bearer_token_file: /path/to/token
insecure_skip_verify: true
scheme: http
relabel_configs: