Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upprometheus cannot find all k8s resouces, such as pod/services etc #2949
Comments
This comment has been minimized.
This comment has been minimized.
|
Usage questinos are best asked at https://groups.google.com/forum/#!forum/prometheus-users |
brian-brazil
closed this
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ghost commentedJul 14, 2017
•
edited by ghost
I deployed prometheus with image on my cluster, and added scc privileged and admin role permission to system:serviceaccount:monitoring:default, I hoped I could see the cluster monitoring states from prometheus, but it kept reporting errors:
time="2017-07-14T10:01:50Z" level=error msg="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:207: Failed to list *v1.Pod: User "system:serviceaccount:monitoring:default" cannot list all pods in the cluster" component="kube_client_runtime" source="kubernetes.go:75"
time="2017-07-14T10:01:51Z" level=error msg="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:179: Failed to list *v1.Endpoints: User "system:serviceaccount:monitoring:default" cannot list all endpoints in the cluster" component="kube_client_runtime" source="kubernetes.go:75"
Environment
openshift 1.5
System information:
Linux 3.10.0-514.21.1.el7.x86_64 x86_64
Prometheus image version:
docker.io/prom/prometheus latest 4da113bb6ae3 4 weeks ago 74.49 MB
Alertmanager image version:
docker.io/prom/alertmanager latest 822973257511 4 weeks ago 17.63 MB
Prometheus DeployConfig file: