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 upKubernetes service discovery can not be detect #4326
Comments
This comment has been minimized.
This comment has been minimized.
|
Did you reload or redeploy the Prometheus server after changing the configmap? |
This comment has been minimized.
This comment has been minimized.
|
@brancz Yes i did,but the new target did not appear,i have try change the prome version,but it still didn't work |
This comment has been minimized.
This comment has been minimized.
|
Can you see your configuration snippet in the |
This comment has been minimized.
This comment has been minimized.
|
@brancz Yes,it's already in prome web /config page , but not in /targets page,so strange that
|
This comment has been minimized.
This comment has been minimized.
|
Do you actually have a |
This comment has been minimized.
This comment has been minimized.
|
@brancz Oh i get it ,the reason for this is that the label doesn't match. After i add By the way, i want to get metrics form |
This comment has been minimized.
This comment has been minimized.
|
I solved it,below is the job configuration file config,as thus, i can get all of the kube_svc with
@brancz Thank you so much,best wish for you! |
yinwenqin
closed this
Jul 3, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
yinwenqin commentedJun 29, 2018
•
edited
I want to use the prometheus SD to discovery the kube service status,so i found a template of kube service target job,then i add it to configmap. but after reload prometheus,i can't event found the title of the job in prometheus web page ,what's wrong i make ? the other jobs are normal running,except the 'kube service'
My kube version is v1.9,here is the target-job template:
On the prometheu web ui , targets page, i can't find the job name
kubernetes-servicesin Targets list which i just add into the configmap, but the other jobs are normal .Here is the jobs in targets page view:
"""
Targets
federate (0/1 up)
kubernetes-apiservers (1/1 up)
kubernetes-cadvisor (3/3 up)
kubernetes-node-exporter (3/3 up)
kubernetes-nodes (3/3 up)
kubernetes-service-endpoints (1/5 up)
mysql performance (1/1 up)
“”“
somebody can help ? If can't even show it,there is no way to customize the rules of kube service