kubernetes-sigs / prometheus-adapter

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

Scrape interval #576

Closed xobot42 closed 1 year ago

xobot42 commented 1 year ago

Hello. Could you help me to understand. How often hpa get metrics from prometheus-adapter for change number of pods. Does it depends on global scrape_interval in prometheus/victroria-metrics? For example If global scrape equal 1m it means that hpa react after 1min for changes?

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

dashpole commented 1 year ago

/kind support /assign @dgrisonnet /triage accepted

dashpole commented 1 year ago

/remove-lifecycle stale

dashpole commented 1 year ago

/remove-kind bug

dgrisonnet commented 1 year ago

There are two intervals that this will depend on:

  1. Prometheus scrape interval for Kubelet metrics
  2. Kube-controller-manager HPA sync period

The theoretical maximum time it would take to the HPA to react would be the sum of these two intervals.