How to validate Container App running at idle usage reduced pricing?

Robin De Greve 70 Reputation points
2024-11-18T16:24:08.12+00:00

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.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
472 questions
0 comments No comments
{count} votes

Accepted answer
  1. Robin De Greve 75 Reputation points
    2024-11-19T10:43:30.27+00:00

    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

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.