New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k8s Discoverer never stops sending updates even when there are no changes. #4518
Comments
note: to replicate you need to remove the locking as there is another bug that blocks there.
|
the change happened in https://github.com/prometheus/prometheus/pull/3660/files so that we get updates even when the deployment is scaled to 0. In other words so that we send an update when all pods have been deleted. The k8s klient keeps sending updates for the old
new
There are 2 options to fix this.
option 1 would solve the problem generally even if the other providers have the same issue. |
as part of troubleshooting #4124 I figred that the k8s provider never stops sending updates.
if you put some printf's you will see that it keeps sending updated even when there are no changes in the k8s cluster.
prometheus/discovery/manager.go
Lines 143 to 153 in f571b69
if you add some printf's in the same corresponding block in v2.0.0 it stops sending updates when there are no changes.
prometheus/discovery/discovery.go
Lines 253 to 287 in 0a74f98
I am thinking something changed at some point when refactoring the k8s code, updating the k8s client or fixing the bug with the namespaces.
ping @cofyc , @simonpasquier
The text was updated successfully, but these errors were encountered: