Kubernetes集群中的Prometheus监控Pod无法进行dcp拨号连接被拒绝

时间:2020-03-08 19:07:12

标签: kubernetes containers monitoring prometheus kubernetes-pod

我正在尝试在Kubernetes集群中刮取豆荚。我已经使用helm install prometheus stable/prometheus -n monitoring命令部署了普罗米修斯,以便在监视名称空间中对其进行设置。

我正在尝试通过在pods元素内添加注释来应用推荐的指令来刮擦Pod:

kubectl edit pod nfs-provisioner-nfs-client-provisioner-648b66fc7c-w2btj -n storage

添加:

metadata:
  annotations:
    prometheus.io/path: /metrics
    prometheus.io/port: "8080"
    prometheus.io/scrape: "true"

如本链接所述:https://hub.helm.sh/charts/stable/prometheus

但是由于某种原因我无法解决,我在Prometheus目标仪表板中拒绝了连接

状态DOWN和Get http://10.233.96.18:8080/metrics: dial tcp 10.233.96.18:8080: connect: connection refused为错误:

TCP DIAL CONNECTION REFUSED

我在做什么错了?

0 个答案:

没有答案
相关问题