Kubectl --raw reporting an unknown metric even though it shows up in the list of known metrics #641
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened?: Getting HPA reporting status
unknown
for a given metric, other metrics seem to work fine:What did you expect to happen?: Custom metric reports back with at least 1 given the query being used
Please provide the prometheus-adapter config:
The config for this metric is fairly simple, and in theory should always return SOME value via the
clamp_min
:Please provide the HPA resource used for autoscaling:
Please provide the HPA status:
Please provide the prometheus-adapter logs with -v=6 around the time the issue happened:
Verbose logging in the adapter shows the following when trying to request the data from the HPA:
Other logs were present but not relevant the this error rate metric failing
Anything else we need to know?:
Querying prometheus for the what I expect it should be translating to shows data in response, to be clear though, the results have no labels:
When querying via the RAW addresses in kubectl, I can see that this named metric does exist:
However when I attempt to query it I get a
NotFound
:I expect this to at the very least show 1.
It seems like this issue may be related to this, however the fixes in there do not seem to have helped: #150
Environment:
prometheus-adapter-4.3.0
0.31.0
kubectl version
):The text was updated successfully, but these errors were encountered: