Open y4h2 opened 2 years ago
用GCP官方example测试
apiVersion: monitoring.googleapis.com/v1
kind: PodMonitoring
metadata:
name: prom-example
spec:
selector:
matchLabels:
app: prom-example
endpoints:
- port: metrics
interval: 30s
GCP managed promethues doesn't work with istio. Once you enabled promethues managed promethues, it will create two namespace gmp-public and gmp-system. Those namespaces are not injected by istio.
参考: Measure your golden signals with GKE Managed Prometheus and the nginx-ingress
部署测试组件
部署PodMonitoring
然后在GCP monitoring page上能看到对应的metrics