Skip to content

Pod metric not being read #192

Answered by jthomperoo
vobrien-axway asked this question in Q&A
Discussion options

You must be logged in to vote

There seems to be a bit of a problem with the underlying k8shorizmetrics library the CPA uses for gathering metrics. If you are fetching multiple metrics and some but not all of them fail to gather the library silently swallows the errors for the failed metric gathering (code here).

I think this was masking some other errors that the K8s metrics API would have reported, so I've created a ticket on that library to get this behaviour changed: jthomperoo/k8shorizmetrics#10

I'll get this updated in the CPA soon too so errors are not swallowed and are logged out properly.

Thanks for spotting this!

Update:

This should no longer be an issue in v2.11.0 and above, errors are now properly logged du…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vobrien-axway
Comment options

@jthomperoo
Comment options

@jthomperoo
Comment options

Answer selected by vobrien-axway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants