GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver
Allow custom metrics from a different pod
Open
- Dominant language
- Go
- Stars
- 409
- Forks
- 236
- Avg merge
- 2h 34m
- Merged PRs (30d)
- 9
Description
I have two deployments, where one should be scaled based on a metric from the other deployment, the problem is that the custom-metrics-stackdriver-adapter attaches pod name when it queries the monitoring API. This prevents me from using metrics from any pod, except the pod I'm trying to auto-scale.
```
I0203 18:07:49.909309 1 filter_builder.go:258] Query with filter(s): "metric.labels.pod = \"analyzer-54bb4ff4dc-hnzn5\" AND metric.type = \"prometheus.googleapis.com/"...
```
Is there a workaround?
Contributor guide
Assessment
This issue has not been assessed yet.