I was able to apply filter to the metrics to check per-replica metrics and validate the conditions for idle-usage pricing. https://learn.microsoft.com/en-us/azure/container-apps/metrics#add-filters
How to validate Container App running at idle usage reduced pricing?
Dear Azure community,
I am running a Consumption based Container App Environment in Azure at the organization I'm working at. For context, we are running GitHub self-hosted runners in this environment. We are currently using Container App jobs and scaling to Zero, but the time it takes to go from 0 to having an operational runner is too long (60-70 seconds). I am looking at another option of using regular Container App and setting minimum replica count to 1. The reduced cost for idle usage is very important to us here (terms found on this page https://learn.microsoft.com/en-us/azure/container-apps/billing#minimum-number-of-replicas-are-running).
Now the question is: How can I validate if my replica meets the conditions to be concidered "idle"? And also how can I validate that we are paying the recuded idle price? Azure metrics can't be scoped down to replica level.
Extra detail: when a replica starts, it runs a script to register the GitHub runner in our organization. Then and sits and wait for a job.
Thank you in advance.