Exposing custom metrics pushed on Azure Monitor to Horizontal Pod Autoscaler

Amarkumar Mishra - FT 21 Reputation points
2022-05-25T06:51:01.733+00:00

I have an AKS service, inside each pod of this service we are running multiple servers. Each server is maintaining multiple connections & pushes the Total Number of connection count to a custom metric inside Azure Monitor using Azure Monitor API. Details of custom metrics are given below

Metric Namespace: custom-connection-count  
Metric: total-connection-count  

Here is the snapshot of the given metric 205363-conn-count-metrics.png

I have also launched azure-k8s-metrics-adapter as well inside AKS clsuter. Now how should I configure HPA to use this custom metrics? Please specify the HPA configuration required for using the above custom metrics?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,969 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,961 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
91 questions
{count} votes