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

Deploy prometheus with k8s, execute cmd get no data #2337

Closed
JackTiger opened this Issue Jan 12, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@JackTiger
Copy link

JackTiger commented Jan 12, 2017

I deploy prometheus in k8s, and execute cmd that the result is no data, and I execute restful api in k8s master node like below:

curl -X GET "http://127.0.0.1:30900/api/v1/query?query=container_spec_cpu_shares&time=1484218546.737&_=1484218527110"
{"status":"success","data":{"resultType":"vector","result":[]}}

I think my prometheus config is right, because I deploy in other k8s cluster, so Is there limit to prometheus , like k8s version or prometheus version?

@matthiasr

This comment has been minimized.

Copy link
Contributor

matthiasr commented Jan 13, 2017

Check the target page of Prometheus – can it scrape its targets? Did it find any?

@JackTiger

This comment has been minimized.

Copy link
Author

JackTiger commented Jan 13, 2017

@matthiasr Thanks for your help, I have resolved my problem because the time in cluster of k8s is set in the future, so prometheus can not get any data.

By the way, Does the prometheus support to monitor the data that I increase service node dynamic. For example now prometheus monitor 5 vm, and I want to add vm to be monitored, Whether I must rewrite the config file of prometheus and restart prometheus server?

@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.