Microsoft Azure Application Analytics for Docker Container Apps
Docker Pull Microsoft/applicationinsights
How to use this Image
- Obtain the instrumentation key of your Application Insights resource. (Look in the Essentials drop-down.) If you don’t have a resource, create a new one.
- Run the following command, replacing %app_ikey% with your instrumentation key:
docker run -v /var/run/docker.sock:/docker.sock -d microsoft/applicationinsights ikey=%app_ikey% - If your application is instrumented with the Application Insights SDK for Java, add the following line into the ApplicationInsights.xml file in your project, under the <TelemetryInitializers> element:<Add type=”com.microsoft.applicationinsights.extensibility.initializer.docker.DockerContextInitializer”/>
Note: Only a single container is required per Docker host. If your application is deployed on multiple Docker hosts, then create an instance of this image on every host.
Here you find more information on Docker HUB
Docker images
In Microsoft Azure you Create a New Application Insights environment :
Here you find more information about to Create an Application Insights resource
I have added my Docker for Windows Containers to Azure Application Insights :
Monitor Docker applications in Application Insights
Here you See my two Running Docker for Windows Containers
Docker Container Start information in Azure AppInsights
You can change the Timelines for a better View
You can open Analytics and make your own queries on your Container App
Enjoy #Analytics