I'm trying to setup alerting based on http status codes in python web server (fastapi) which runs on Azure Kubernetes Services (AKS) behind an nginx ingress controller. AKS has integration with azure log workspace enabled, and i can see the logs there, but I can't find any example query, or even any example of status code metric available. After looking at the docs, it seemed to me that i have to instrument it with application insights (c.f. tracing) to get status codes. It seemed to me that this is somewhat excessive (although useful, of course).
In other cloud providers I was always able to find the http status code metrics on load balancers and use them to alert if the ratio of errors started growing. But I can't find any straightforward to do the same with AKS. Any ideas are welcome. I would prefer to use the tooling provided by Azure itself, e.g. not some other vendor.