Skip to content

Stackdriver: Unable to read metrics from HPA #273

@dmoxyeze

Description

@dmoxyeze

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions