Created attachment 1560175 [details]
prometheus-k8s pod logs
Description of problem:
etcd pods/services are moved to openshift-etcd project now, but the etcd svc can not be discovered and can not show etcd data in grafana UI
error in prometheus-k8s pod logs shows:
level=error ts=2019-04-30T04:06:58.311Z caller=klog.go:94 component=k8s_client_runtime func=ErrorDepth msg="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:300: Failed to list *v1.Endpoints: endpoints is forbidden: User \"system:serviceaccount:openshift-monitoring:prometheus-k8s\" cannot list resource \"endpoints\" in API group \"\" in the namespace \"openshift-etcd\""
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Check etcd targets in prometheus /service-discovery page
etcd svc can not be discovered
etcd svc should be discovered
blocks etcd monitoring testing
Created attachment 1560176 [details]
prometheus-k8s sa info
I can see openshift-monitoring/etcd/0 in prometheus UI, and there's a etcd section under grafana
verified with nightly build 4.1.0-0.nightly-2019-05-01-002148
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.