Kubernetes HPA based on multiple Prometheus servers

11 views
Skip to first unread message

Matthias Rampke

unread,
Sep 9, 2020, 2:59:15 AM9/9/20
to Prometheus Users

Hello,

we would like to scale Kubernetes deployments based on custom metrics from namespace-local Prometheus servers, in other words, multiple (tens) Prometheus servers per cluster. Has this been done?

As far as I can tell, the custom metrics API specifies a specific endpoint, so that I can only specify one ApiService to one Prometheus adapter, which in turn only accepts one Prometheus URL. Currently, we work around this by federating selected metrics to one Prometheus server per cluster; however this introduces additional delay in the autoscaling control loop.

Is there another way?

I noticed that KEDA allows Prometheus triggers that each specify a Prometheus URL. Is this useful for continuous scaling based on metrics such as the (time-averaged) number of concurrent requests in flight?

Any experiences appreciated!

Best,
MR
Reply all
Reply to author
Forward
0 new messages