Open
Description
Expected Behavior
we want to get average value getting reflected at faster rate so that it would not impact the downtime in the application.
Actual Behavior
we are using custom metric for our application at specified json-path interval as 1 sec as below but when we are restarting all the pods then its taking more than 5 minutes to get zero average value and in the logs we see all our metrics are zero as we restarted all the pods. so is there any way to control this average value at faster rate so it would not impact the application.
hpa configuations annotations
metric-config.pods.used-pool-length.json-path/interval: "1s"
kube metric adapter logs
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-c48pm" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-hz9fx" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-k9c74" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-jn9g9" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-ftzzx" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-qwfnf" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-jbbmj" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-c65vf" provider=hpa
time="2023-04-27T12:37:09Z" level=info msg="Collected new custom metric 'used-pool-length' (0) for Pod qa/browser-manager-7b7cbc9b75-cjfzl" provider=hpa```
## Steps to Reproduce the Problem
1.
1.
1.
## Specifications
- Version: registry.opensource.zalan.do/teapot/kube-metrics-adapter:v0.1.19
- Platform: eks
- Subsystem: amazon linux 2
Metadata
Metadata
Assignees
Labels
No labels