HPA unable find metrics,404
Closed this issue · 1 comments
Followed the steps in tutorial,configured HPA to query http_requests_per_second
HPA shows :
Warning FailedGetPodsMetric 33s (x1936 over 18h) horizontal-pod-autoscaler unable to get metric http_requests_per_second: unable to fetch metrics from custom metrics API: the server could not find the metric http_requests_per_second for pods
Prometheus adapter logs shows:
I0721 23:40:12.332805 1 httplog.go:89] "HTTP" verb="GET" URI="/apis/custom.metrics.k8s.io/v1beta1/namespaces/demo/pods/%2A/http_requests_per_second?labelSelector=app%3Dexpress" latency="21.786184ms" userAgent="kube-controller-manager/v1.24.0 (linux/amd64) kubernetes/4ce5a89/system:serviceaccount:kube-system:horizontal-pod-autoscaler" srcIP="10.244.0.1:64743" resp=404
can you help me ASAP,Thank you
I'll make an updated tutorial soon.