knative / serving

Kubernetes-based, scale-to-zero, request-driven compute
https://knative.dev/docs/serving/
Apache License 2.0
5.46k stars 1.14k forks source link

revision_request_latencies_bucket duration time of queue-proxy #15304

Open bonavadeur opened 1 month ago

bonavadeur commented 1 month ago

Hi all, I installed Knative Serving with Kourier as networking option. I'm working in scraping the metric revision_request_latencies_bucket directly from the queue-proxy via address pod_ip:9091/metrics. As far as I can see, scraped metrics are presented as cumulative values ​​over a duration of time (I'm guessing around 10 minutes because after 10 minutes of no requests to the Pod, I can't scrape this metric anymore, I am not sure about the value 10 minutes). Now I want to modify this value to smaller value, 10 seconds for example. Can I achieve this simply with some configuration or do I have to rebuild the queue-proxy from code? I have already known how to rebuild Knative Serving from source code. If I have to rebuild, please show me where needs to be changed.

Thanks for help.

skonto commented 1 month ago

Related discussion here. @bonavadeur should we close this one?