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 endpoints SD fails to detect empty replicas #3659
Comments
This comment has been minimized.
This comment has been minimized.
|
I have a PR for this. |
simonpasquier
added a commit
to simonpasquier/prometheus
that referenced
this issue
Jan 5, 2018
brian-brazil
closed this
in
bde64cf
Jan 30, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
simonpasquier commentedJan 5, 2018
What did you do?
Using the K8S endpoints SD to monitor a service + statefulset (replicas=1). After deployment, Prometheus scrapes the associated pods as expected. After a while, I scale the statefulset to zero replicas and check that the pods have been deleted.
What did you expect to see?
Prometheus should stop scraping the pods since none exists anymore.
What did you see instead? Under which circumstances?
Prometheus keeps scraping the pods (and fails) as if it wasn't aware of the replica update.
Environment
master