GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver

metricName: loadbalancing.googleapis.com|https|backend_latencies unable to fetch metrics from external metrics API: Distributions are not supported

Open
#466 1 comment 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

I was trying to configure the external metrics with the hpa by using latency but i'm, getting the following error:

Warning FailedGetExternalMetric horizontal-pod-autoscaler unable to get external metric bt-mservices/loadbalancing.googleapis.com|https|backend_latencies/&LabelSelector{MatchLabels:map[string]string{resource.labels.backend_name: k8s1-daea7033-bt-mservices-core-api-service-80-eb0aa30d,},MatchExpressions:[]LabelSelectorRequirement{},}: unable to fetch metrics from external metrics API: Distributions are not supported

Sharing my HPA configuration
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: core-api-hpa
namespace: bt-mservices
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: core-api-deployment
minReplicas: 1
maxReplicas: 5
metrics:
- type: External
external:
metricName: loadbalancing.googleapis.com|https|backend_latencies
targetValue: "1000"
metricSelector:
matchLabels:
resource.labels.backend_name: k8s1-daea7033-bt-mservices-core-api-service-xx-xxxxxxx

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.