kubernetes-sigs / prometheus-adapter

An implementation of the custom.metrics.k8s.io API using Prometheus
Apache License 2.0
1.9k stars 551 forks source link

Why the custom-metric-api yaml file lost after release-0.11? #664

Closed starryNightSS closed 2 months ago

starryNightSS commented 2 months ago

I am trying to test HPA with custom metrics , and I use the latest prometheus adapter to isntall After installation , I can not see custom metric apiserver ,only v1beta1.metrics.k8s.io could anyone can tell should I use release-0.10 to reinstall adapter ?

k8s-ci-robot commented 2 months ago

This issue is currently awaiting triage.

If prometheus-adapter contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
starryNightSS commented 2 months ago

I use kube-prometheus-release-0.13 to deploy

starryNightSS commented 2 months ago

when I deploy a HPA following the walkthrough https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/docs/walkthrough.md I got this error in controller : "Event occurred" object="seeburger/bis-dt-hpa" fieldPath="" kind="HorizontalPodAutoscaler" apiVersion="autoscaling/v2" type="Warning" reason="FailedGetPodsMetric" message="unable to get metric http_requests: unable to fetch metrics from custom metrics API: no custom metrics API (custom.metrics.k8s.io) registered"

starryNightSS commented 2 months ago

Can find the resolution in this link https://github.com/prometheus-operator/kube-prometheus/discussions/996