Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to monitor Azure Container Apps with Dynatrace?


Azure Container Apps is a relatively new fully managed serverless container service in Azure. 

How can it be monitored with Dynatrace?


DynaMight Guru
DynaMight Guru

Hi @shawnz88 

Azure Container Apps is part of Container Services.
To monitor basic metrics, you can use, for example,

It's worth verifying that you can install OA on the container as you can with AKS 🙂



Have a nice day!

@shawnz88 I have been keeping my eye on this topic for a while.

You can bake the oneagent into your dockerBuild file to get service level insights and the rest of the OA feature set

As for monitoring the ACA infrastructure/runtime this has been asked of from both Microsoft and Dynatrace. Currently the Azure set of Dynatrace, last I checked, didn't have the option to pull in the MS telemetry for the underlying ACA-Env/containers. I am also not sure how it will deal with logging as the default is to ship them to a Log analytics workspace.


You can monitor it by installing the OA inside of the container (dockerfile), but there are some limitations / challenges.

  • You can't Customize OneAgent installation (ex host groups, custom properties, custom hostnames, etc)
  • agent tools (ex oneagentctl) are not included in the installation => you won't be able to use them.
  • Making customisation in the Dynatrace UI after deployment is only a temporary solution => containers are immutable so everytime you make a change it will create a completely new container and this container will be detected as a new host in dynatrace.
  • Only global dynatrace settings will apply to your container hosts => all other changes you will lose when the container is killed and a new one created, because it is a completely new host. 
  • Because Dynatrace creates a new host for each individual container, it becomes more difficult to keep track of everything neatly. Containers are relatively short living especially if you have automatic up-downscaling.

Monaco could be a possible solution to keep your config, but I still need to test this.
An other possible solution is executing a custom script in you pipeline after container deployment to set settings (using dynatrace API) .


@dylan_taelemansDo we have a solution to have a consistent host name whenever the container restarts? I am seeing multiple hosts added in the Dynatrace hosts section whenever the container restarts.

@shibily, a container is immutable so restart will generate an entirely new 'host/container'. Therefore, Dynatrace will also recognize this as a new host. For host naming, we've established a Global rule using the AzureHostName property, which incorporates the slot name {Host:AzureHostName/^([^.]++)}. Additionally, we used condition Paas Type equals 'Azure Websites.' You can experiment with adding IP, but keep in mind that it will result in longer names.

For dashboarding purposes, we can harness the creative capabilities of Grail to generate visually appealing graphs with minimal interruptions and color changes when splitting on hosts. However, they can still be a bit challenging from time to time. 😄

@shibily I think it depends on what you intend to do. The host names will be different due to revision/replica combinations.

I have tested using and environment variable applied to the container:


Then creating a automatically applied tag using this 


Then you can use a host name rule to remove the bits at the end. like below but you will require one rule per application name if there are many. The gui doesnt allow regex but the api might?



I haven't had much time to play with how this will look in the data explorer. i.e are all the host measured on one line with no instance(revision/replica) splitting? 


Again I think it depends on what you are trying to do. I think each revision and replica SHOULD be a separate host but we also need a way to measure deviations across revisions and replica for threshold alerting and dashboarding. 

I'm just going to leave the tag on for my ones and not bother with renaming the individual hosts/services as i want to know exactly which node is playing up.


I would be nice if the detected metadata could be expanded to behave like a process group/container group.

Featured Posts