If you use Microsoft Azure App Service to manage your applications, you can configure your environment to collect the trace data from those applications on Azure App Service. To collect the traces of those applications, you can deploy an OpenTelemetry Collector to an Azure Container Instance. You can do this by creating an Azure Container Instance and then running the Docker container with the OpenTelemetry Collector installed in the container Instance.
Requirements for Deploying an OpenTelemetry Collector in Azure Container Instance
To deploy the OpenTelemetry Collector in your Microsoft Container Instance, you need the following:
- OpenTelemetry Collector installed in Docker
For more information, see OpenTelemetry Collector Installation.
- Microsoft Azure account with with the following:
- An Azure Resource Group
For more information, see Microsoft’s Manage Azure resource groups by using the Azure portal documentation.
- A virtual network created in the same Resource Group
For more information, see Microsoft’s Quickstart: Create a virtual network using the Azure portal documentation.
- An Azure Resource Group
Deploying an OpenTelemetry Collector in an Azure Container Instance
Use Create a container instance in Microsoft’s Quickstart: Deploy a container instance in Azure using the Azure portal documentation along with the following information to deploy an OpenTelemetry Collector when creating an Azure Container Instance.
- Enter the following values to create the container instance:
- Resource group: The resource group you created
- Container name: Enter a name for your container
- Image source: Docker Hub
- Image type: Public
- Image: logicmonitor/lmotel
- OS type: Linux
- Size: 1 core CPU and 2GB memory at a minimum
- Enter the following values for the networking settings:
- Networking type: Private
- Virtual network: The virtual network you created
- Ports: 4317 and 4318 (Enter “TCP” for the ports protocol for both port numbers)
- Enter the following variables for for the advanced settings:
- Enter additional values for applicable settings and then create the container.
You can view the container’s logs to see the state of the OpenTelemetry Collector on the Azure Container Instance. For more information, see View container logs in Microsoft’s Quickstart: Deploy a container instance in Azure using the Azure portal documentation.
To instrument the application and configure it to emit trace data to LogicMonitor, see Automatic Instrumentation of Applications in Microsoft Azure App Service for LogicMonitor.