stefanprodan/k8s-prom-hpa

Custom metrics improvement

surendrababuravella opened this issue · 0 comments

Hi Stefan,

First of thank you for providing custom metrics dependencies which is working fine for us. But we need to enrich small code into this to use.

currently this custom metrics image is fetching metric value from prometheus and responding back to HPA for autoscaling.

But we want to add irate function to prometheus metrics to fetch tps directly from prometheus like below.

sum(irate(<>[1m]))

So can you please guide us in this.

Thanks,
Surendra