I recently deployed the buildkite-agent-metrics on GKE. I can see the metrics when I check the logs. However, when I try to scale our pods using the metrics, I get this error
FailedGetPodsMetric: the HPA was unable to compute the replica count: unable to get metric custom.googleapis.com|buildkite|xsplit_web|WaitingJobsCount: │
│ no metrics returned from custom metrics API
When I run kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/<namespace>/custom.googleapis.com|buildkite|project|WaitingJobsCount" | jq, I get this error:
Error from server (ServiceUnavailable): the server is currently unable to handle the request
I recently deployed the buildkite-agent-metrics on GKE. I can see the metrics when I check the logs. However, when I try to scale our pods using the metrics, I get this error
When I run
kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/<namespace>/custom.googleapis.com|buildkite|project|WaitingJobsCount" | jq
, I get this error:Error from server (ServiceUnavailable): the server is currently unable to handle the request