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 upCould not use kubernetes-pods job #1693
Comments
This comment has been minimized.
This comment has been minimized.
|
I'm not 100% sure but I think you need to declare named ports in your pod spec. At least port 9126 – so just adding |
This comment has been minimized.
This comment has been minimized.
|
@matthiasr : thanks that fixed the problem. this may need to be specified in documentation ? |
rvrignaud
closed this
May 31, 2016
matthiasr
referenced this issue
May 31, 2016
Closed
Clarify podspec requirements for Kubernetes pod/container discovery #455
This comment has been minimized.
This comment has been minimized.
|
Indeed! I filed prometheus/docs#455 for that. |
This comment has been minimized.
This comment has been minimized.
|
FWIW, the issue here is not the name aspect, but that the port appears to not be declared at all. Edit: On further consideration, the issue is that no port is declared; thus the pod discovery code declined to create a target for pod container a container that claims to provide no network services. I'm discussing in prometheus/docs#455 how to best address this. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
rvrignaud commentedMay 31, 2016
I'm using prometheus 0.19.2 in a Google Container Cluster (GKE) (Kubernetes 1.2.4).
'kubernetes-service-endpoints' discovery is working fine.
I'm trying to use 'kubernetes-pods' job but I don't get any target discovered.
My prometheus job definition is a copy/paste of 'kubernetes-pods' as defined in https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml
I have a deployment object defined with:
I have pods scheduled and running. But no target is discovered. I'm not sure how to debug this.
I see nothing in prometheus logs relevant.
Am I doing anything wrong ?