Configurations for OpenTelemetry Collector Deployment in Microsoft Azure Container Instance

Last updated on 21 July, 2022

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:

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.

  1. 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
  2. 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)
  3. Enter the following variables for for the advanced settings:
  4. 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.

In This Article