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 discovery is reporting pods that are long gone #2398
Comments
This comment has been minimized.
This comment has been minimized.
|
Does this persist over restarts? I'm trying to figure out whether this information is incorrectly returned by the API or if it's an issue with Prometheus (kubectl may not show it while the API still exposes it). |
This comment has been minimized.
This comment has been minimized.
|
Yes, it persists across Prometheus restarts. |
This comment has been minimized.
This comment has been minimized.
|
Interesting, that sounds like Kubernetes is returning those through the API. Let's have a look at the payload that the Kubernetes API returns when Prometheus discovers the targets. Could you start |
This comment has been minimized.
This comment has been minimized.
|
Here is the gist: https://gist.github.com/checketts/285135b6fd6de0c192a22934d53fb7af
|
This comment has been minimized.
This comment has been minimized.
|
Well I just did another restart (changing the storage path at the same time, for storage reasons) and now the phantom pod is gone. Sorry I wasn't able to provide any useful data. |
This comment has been minimized.
This comment has been minimized.
|
Interesting, if @fabxc doesn't have an idea what may have happened, I'd say we close this here and reopen if we see it occur again and can analyze the underlying issue further. |
This comment has been minimized.
This comment has been minimized.
|
Thanks. I'll keep an eye on it and reopen if needed. |
checketts
closed this
Feb 9, 2017
This comment has been minimized.
This comment has been minimized.
andrewhowdencom
commented
Feb 9, 2017
|
Interestingly, I am also seeing expired pods; was initially confused as resource usage was all 0. Am happy to look further into this if required. |
This comment has been minimized.
This comment has been minimized.
|
If the problem reappears on restart, I don't think it's an issue on our end
like missing pod deletion signals.
…On Thu, Feb 9, 2017 at 12:56 AM Andrew Howden ***@***.***> wrote:
Interestingly, I am also seeing expired pods; was initially confused as
resource usage was all 0. Am happy to look further into this if required.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2398 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEuA8q8-Evy_0CWNkVgXvoeiOXn8KR9eks5ratS6gaJpZM4L4NBD>
.
|
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. |
checketts commentedFeb 6, 2017
What did you do?
Navigating to the
/targetspage for Prometheus when running the Kubernetes discovery and viewing thekubernetes-podsjob.What did you expect to see?
I expected to see just pods that existed
What did you see instead? Under which circumstances?
I am instead seeing that 2 pods are listed as target that haven't existed for over 1 month (showing just one in the screenshot).
I'm unable to locate the pods using
kubectlor any other means. There are 2 current pods from the same deployment that are being tracked, so the 2 old ones are from a previous version of the deployment.Environment
Prometheus is running in s Kubernetes Pod using Kubernetes Discovery
Linux 4.4.0-45-generic x86_64