Thanks for posting your question in the Microsoft Q&A forum.
The difference between CPU usage and CPU usage percentage in Azure Container Apps is due to how these metrics are calculated and reported.
CPU Usage is reported in millicores, where 1000 millicores equal 1 full CPU core. When you see a CPU usage of 0.45 cores, this actually represents 450 millicores, which is indeed 45% of a single core.
CPU Usage Percentage, on the other hand, is reported as a percentage of the CPU limit used. This metric is calculated differently and may take into account factors such as the container's CPU limit and the actual physical resources available.
The discrepancy you're observing (45% vs 33%) could be due to several factors:
- Measurement intervals: The two metrics might be calculated over different time periods.
- Resource limits: The percentage might be calculated based on the total available resources across all replicas, not just the single core allocated to each replica.
- Preview status: As the CPU Usage Percentage metric is in preview, it may still have some inconsistencies or be calculated differently from the CPU Usage metric.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful