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 upProvide metrics for kubernetes sd errors #3876
Comments
This comment has been minimized.
This comment has been minimized.
|
I also bumped into this today and would appreciate error metric for k8s SD |
This comment has been minimized.
This comment has been minimized.
|
I understand this has no priority compared to more important problems being solved right now so I decided I'd give it a try. Unfortunately I'm complete newbie in Go and this is pretty bit step for me as I look at to code. If I read it right Prometheus uses The problem is that the info about requests has the
I'll try to investigate further but if any Prometheus developer or anyone else gave me some clue or advice I'd be really glad. Maybe I'm missing something out. |
This comment has been minimized.
This comment has been minimized.
|
Ok I hope I found the right direction in using the |
This comment has been minimized.
This comment has been minimized.
|
So the problem is Prometheus is using The I think the I'll be glad to work on this further but I'd like any word from maintainers on this since it looks like bigger change. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The compatibility matrix really doesn't matter for the Prometheus project, as we only use resources that went v1 in Kubernetes 1.0 (maybe 1.2, I would have to look it up again to be honest, but it's a much older version than the client-go version we're using). That's not to say we shouldn't upgrade, but I wanted to make sure everyone knows there are no compatibility issues we'll run into. |
This comment has been minimized.
This comment has been minimized.
|
I'm sorry, I didn't want it to sound somehow alarming, my bad. |
This comment has been minimized.
This comment has been minimized.
|
No worries, I didn't take it like that, I just wanted to make sure the information is here if people start reading this. |
FUSAKLA
referenced this issue
Mar 29, 2018
Closed
The vendored kubernetes client is completely obsolete #4021
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier Hi, definitely. I had working version based on the Krasi's branch with updated client-go, so hopefully it will be easy to port after those major updates in k8s SD. I'll get to it during this weekend hopefully. |
This comment has been minimized.
This comment has been minimized.
|
so there it is |
This comment has been minimized.
This comment has been minimized.
|
Ok, it took bit longer but it should be in master now. @JosephSalisbury could you look at it if it satisfies your needs for alerting? |
This comment has been minimized.
This comment has been minimized.
|
Closed by #4458 |
JosephSalisbury commentedFeb 21, 2018
We have a setup where we can dynamically add Kubernetes clusters to Prometheus. We have some (unrelated) issues where Kubernetes clusters (very occasionally :D) don't come up correctly.
When this happens, I see the following in logs:
but in terms of metrics for the kubernetes sd, i'm only getting
It would be very useful for prometheus to expose metrics about kubernetes sd errors, so we can alert for situations where prometheus can't reach new clusters.
Thoughts? Useful? Happy to provide a PR if there's some consensus here.