GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver

HPA doesn't scale down to minimum size when no data is available from external metrics API server

Open
#483 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
409
Forks
236
Avg merge
2h 34m
Merged PRs (30d)
9

Description

When I try to fetch metrics from external metrics endpoint (such as stackdriver), stackdriver will stop sending metrics if data is not available. For example, the following command will confirm if the adapter is receiving any data from stackdriver or not.

```
kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/default/loadbalancing.googleapis.com|l3|internal|ingress_packets_count" | jq
```
![image](https://user-images.githubusercontent.com/101712230/184945192-0071b5f7-f9a7-4002-9549-220accb6793c.png)

If the data is not available, the value reported by HPA will go into an unknown state and no scaling activity will happen.
![image](https://user-images.githubusercontent.com/101712230/184945118-666da41c-1319-4f2f-808f-d5d76be6efcc.png)

Is it possible to build logic into the adapter if data is not available ore reported, then the HPA automatically scales down the metric to minimum size ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.