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 SD for Pods doesn't respect port annotations #2130
Comments
This comment has been minimized.
This comment has been minimized.
|
On looking closely at the example, I actually realized the regex was not copied correctly. This actually works as expected, apologies. |
Sushant
closed this
Oct 27, 2016
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. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sushant commentedOct 27, 2016
What did you do?
Set Pod annotations:
What did you expect to see?
Prometheus targets with the Pod IPs and port 9145
e.g.
http://192.168.100.1:9145/metricsWhat did you see instead? Under which circumstances?
Prometheus targets with the Pod IPs and port 80
e.g.
http://192.168.100.1:80/metricsEnvironment
Kubernetes: 1.3.5
Docker host OS: Linux 3.10.0-327.4.5.el7.x86_64 x86_64
quay.io/prometheus/prometheus:v1.2.1Similar to Kubernetes example.
Note that after removing
prometheus.io/port: "9145"I expected Prometheus to try to scrape with default port9102(as per the example docs) but it still tried scraping on port 80.