Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus kubernetes object statistics are not collected with coreOS #2405

Closed
sugun999 opened this Issue Feb 7, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@sugun999
Copy link

sugun999 commented Feb 7, 2017

Hi,

I am trying to collect statistics of kubernetes objects with prometheus. I have setup kubernetes with coreOS.
Used this file https://github.com/coreos/blog-examples/blob/master/monitoring-kubernetes-with-prometheus/prometheus.yml to run prometheus as pod.

My pods are running under "fast-local" namespace(where as prometheus pod is running under default namespace) and I specified below annotations with each of my pods and I am able to access these pods with services that I created with kubernetes.

annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "1111"

I would expect to see successful statistics of my custom pods with prometheus UI. But it shows below error.

error

Am I missing anything? Do I need to run cAdvisor/heapster to collect statistics?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Feb 7, 2017

Are you sure the /metrics is in the Prometheus format?

@sugun999

This comment has been minimized.

Copy link
Author

sugun999 commented Feb 7, 2017

Hi,

How I can check this? Is there any guide?

@gianrubio

This comment has been minimized.

Copy link

gianrubio commented Feb 9, 2017

@sugun999 in the first job you're not scrapping a prometheus endpoint, to verify just click in the first link http://10.2.36... and check

the second error is related a network problem, check if prometheus can reach the hosts.

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Mar 2, 2017

Assuming this is resolved.

@fabxc fabxc closed this Mar 2, 2017

@lock

This comment has been minimized.

Copy link

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 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.
You can’t perform that action at this time.