Open clarkmcc opened 1 year ago
I think I had a similar issue using the type Pods metric. I got this working with the external metrics like so:
metrics:
- type: External
external:
metric:
name: prometheus.googleapis.com|jobs|gauge
target:
type: AverageValue
averageValue: 1
its not working on me if i try to use extenral type metrics. Prometheus.googleapis not found.
cc @piotrgrohs do you have google-managed-prometheus in your cluster?
Metrics collected by google-managed-prometheus will be sent into prometheus.googleapis.com
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.
Is there a workaround?