GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver

[k8s-stackdriver] support for aggregations

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

Description

At present the k8s-stackdriver adapter is of limited use due to the lack of access to [aggregations](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#aggregation) such as sum / mean / etc.

Without these, if we attempt to emit a custom metric of requests per second for example and then deploy 10 replicas and set an HPA target of 10. Assuming each replica is happily serving 10 requests per second when the HPA asks for an update the value coming coming back from stackdriver will be 100 since we cannot instruct the adapter to look at the mean not the total.

The result is a deployment scaling to max pods and staying there.

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.