【发布时间】:2020-06-16 13:03:43
【问题描述】:
oc 版本:
客户端版本:4.4.3 服务器版本:4.4.3 Kubernetes 版本:v1.17.1
图片:quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6a5398997bd7ccddd8d0be0f0f2d9dcae8dddc01d54e6877437f07397c273048
其他 pod 没有任何错误,仅在 Prometheus Operator pod 日志中出现以下异常:
E0616 12:23:10.336040 1 reflector.go:280] github.com/coreos/prometheus-operator/pkg/prometheus/operator.go:477: Failed to watch *v1.PrometheusRule: expected resource version to have 40 parts to match the number of ListerWatchers
我检查了 Prometheus 能够看到的目标,Prometheus 可以访问的所有节点名称,并且它能够获取数据。一切看起来都很好,但 Prometheus 和 Grafana 控制台上没有任何数据。任何帮助将不胜感激。
【问题讨论】:
-
在数据进入 Prometheus DB 之前,Grafana 不会显示任何内容。
-
您可能会遇到以下问题:github.com/coreos/prometheus-operator/issues/3218 但它说“手表”应该自动重新启动。你能检查一下是否还有其他错误吗?
标签: kubernetes openshift prometheus grafana