作者:金牛梁浩_934 | 来源:互联网 | 2023-07-22 15:52
What did you do?
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: frontend
labels:
tier: frontend
spec:
selector:
matchLabels:
tier: frontend
endpoints:
- interval: 10s
port: web
path: /federate
params:
'match[]':
- '{name="up"}'
static_configs:
- targets: ['10.15.10.91:30200']
What did you expect to see?
I expected to see the 10.15.10.91:30200 in targets
What did you see instead? Under which circumstances?
Targets is empty
Environment
kubernetes cluster
Prometheus Operator version: 0.23.2
insert image tag or Git SHA here
Kubernetes version information:
insert output of
here
Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.
Manifests:
1
| insert manifests relevant to the issue |
- Prometheus Operator Logs:
1
| insert Prometheus Operator logs relevant to the issue here |
该提问来源于开源项目:prometheus-operator/prometheus-operator
Can I close this issue?