Skip to content

Instantly share code, notes, and snippets.

@shawnho1018
Last active September 19, 2022 09:18
Show Gist options
  • Save shawnho1018/fff6ba1ec5825a82e8778521b701672a to your computer and use it in GitHub Desktop.
Save shawnho1018/fff6ba1ec5825a82e8778521b701672a to your computer and use it in GitHub Desktop.
prometheus-config-addon.yaml
# 收集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