prometheus-operator / kube-prometheus

Use Prometheus to monitor Kubernetes and applications running on Kubernetes
https://prometheus-operator.dev/
Apache License 2.0
6.73k stars 1.93k forks source link

prometheus-adapter pod always restart when i use custom-metrics #2284

Closed txjjjjj closed 3 months ago

txjjjjj commented 11 months ago

env:

main branch
eks
I'm using cilium cni, all pods use hostNetwork network mode

I just want to use them for hpa

  (import 'kube-prometheus/addons/custom-metrics.libsonnet') +
  (import 'kube-prometheus/addons/external-metrics.libsonnet') +

Using prometheus-adapter, is there a more detailed guide?

 ✗ k get apiService | grep metrics
v1beta1.custom.metrics.k8s.io          monitoring/prometheus-adapter   False (FailedDiscoveryCheck)   9m46s
v1beta1.external.metrics.k8s.io        monitoring/prometheus-adapter   False (FailedDiscoveryCheck)   9m46s
v1beta1.metrics.k8s.io                 monitoring/prometheus-adapter   True                           9m47s
v1beta2.custom.metrics.k8s.io          monitoring/prometheus-adapter   False (FailedDiscoveryCheck)   9m46s
pschulten commented 7 months ago

same here

Danny5487401 commented 5 months ago

same here . image image

fixed by inprove memory of adapter