Last active
September 19, 2022 09:18
-
-
Save shawnho1018/fff6ba1ec5825a82e8778521b701672a to your computer and use it in GitHub Desktop.
prometheus-config-addon.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 收集istiod上數據 | |
- job_name: 'istiod' | |
kubernetes_sd_configs: | |
- role: endpoints | |
namespaces: | |
names: | |
- istio-system | |
relabel_configs: | |
- source_labels: [__meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name] | |
action: keep | |
regex: istiod;http-monitoring | |
# 收集Sidecar上數據 | |
- job_name: 'envoy-stats' | |
metrics_path: /stats/prometheus | |
kubernetes_sd_configs: | |
- role: pod | |
relabel_configs: | |
- source_labels: [__meta_kubernetes_pod_container_port_name] | |
action: keep | |
regex: '.*-envoy-prom' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment