Create Prometheus Adapter API Service #522
-
Hi everyone, Is it possible to create a Prometheus Adapter API Service to allow Horizontal Pod Autoscaler to read the http_requests_total metric? Also, while navigating through Grafana metrics, I couldn't find the http_request_total metric. Should I make some adjustments to enable it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Hi - @gregoriomartin - apologies for late response. We don't collect all metrics by default. But you could customize to collect/scrape anything more/less than we collect by default. Please see here on what we collect/scrape by default and also how you can customize that behavior -- https://learn.microsoft.com/en-us/azure/azure-monitor/containers/prometheus-metrics-scrape-configuration-minimal |
Beta Was this translation helpful? Give feedback.
KEDA has support for horizontal scaling thru external/azure managed prometheus metrics. This support has been added to KEDA, starting with KEDA version 2.10.0. Please try it out and let us know. Its better than native HPA adapters as it can scale down to 0 (where as native HPA can do only 1, and also native HPA supports only cpu & memory based scaling by default). -- https://keda.sh/docs/2.10/scalers/prometheus/
Can you explain more on
http_request_total
metric? Is it the API server requests you are looking or is it any other custom/workload metric you want to collect ? If later, you can collect any custom metric thru custom scrape jobs.