-
Bug
-
Resolution: Done
-
Critical
-
Pipelines 1.3
-
None
-
False
-
False
-
Undefined
-
Prometheus server unable to read pipeline metrics that are emitted by pipelines-controller
oc logs -f po/prometheus-k8s-0 -n openshift-monitoring level=error ts=2021-02-04T05:34:56.320Z caller=klog.go:96 component=k8s_client_runtime func=ErrorDepth msg="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:428: Failed to watch *v1.Pod: failed to list *v1.Pod: pods is forbidden: User \"system:serviceaccount:openshift-monitoring:prometheus-k8s\" cannot list resource \"pods\" in API group \"\" in the namespace \"openshift-pipelines\"" level=error ts=2021-02-04T05:35:06.963Z caller=klog.go:96 component=k8s_client_runtime func=ErrorDepth msg="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:426: Failed to watch *v1.Endpoints: 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-pipelines\"" level=error ts=2021-02-04T05:35:18.312Z caller=klog.go:96 component=k8s_client_runtime func=ErrorDepth msg="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:427: Failed to watch *v1.Service: failed to list *v1.Service: services is forbidden: User \"system:serviceaccount:openshift-monitoring:prometheus-k8s\" cannot list resource \"services\" in API group \"\" in the namespace \"openshift-pipelines\""
Here is slack discussion to know more about the issue.