Support Center Home


Configurations for OpenTelemetry Collector Container Installation

The OpenTelemetry Collector Installation wizard in LogicMonitor allows you to customize the values of the install command for Docker or Kubernetes.

Optional Parameters for Installing an OpenTelemetry Collector in Docker

When you customize the values of the install command, you must include the following required environment variables: 

  • LOGICMONITOR_ACCOUNT
  • LOGICMONITOR_ACCESS_ID
  • LOGICMONITOR_ACCESS_KEY
  • LOGICMONITOR_OTEL_NAME

The following table displays the optional parameters that can be passed in the install command of the wizard:

Use CaseParameter Example
Configure external ports using the -p flag

For example, you can expose the health check extension ports using the parameter example.
-p 13133:13133
Mount external configuration files as a volumedocker run -d -e LOGICMONITOR_ACCOUNT="lm_portal_name" -e LOGICMONITOR_ACCESS_ID=<lm-access-id> -e LOGICMONITOR_ACCESS_KEY=<lm-access-key> -e LOGICMONITOR_OTEL_NAME="collector_name" -p 4317:4317 -p 4318:4318 -v <absolute_path_to_external_config>:/lmconfig.yaml logicmonitor/lmotel --config lmconfig.yaml
Pass environment variables to download and install a specific version of lmotel-e LOGICMONITOR_OTEL_VERSION="<lmotel_version>"
Specify the platform using the CONTAINER_ENV environment variable-e CONTAINER_ENV="docker"

Optional Parameters for Installing an OpenTelemetry Collector in Kubernetes

When you customize the values of the install command, you must include the following required environment variables: 

  • LOGICMONITOR_ACCOUNT
  • LOGICMONITOR_ACCESS_ID
  • LOGICMONITOR_ACCESS_KEY
  • LOGICMONITOR_OTEL_NAME

The following table displays the optional parameters that can be passed in the install command of the wizard:

Use CaseParameter Example
Configure external ports
Note: This parameter can be used for adding and editing existing ports.
--set service.ports.<key_of_port>=<port_value>
Modify the lmotel helm chart portshttp: 4318
grpc: 4317
pprof: 1777
healthcheck: 13133
Mount external configuration files as a volume--set-file=external_config.lmconfig=<external_config_file_path>
Download an install a specific version of lmotel by setting a field--set lm.otel_version=<lmotel_version>
Specify replica count using the replicaCount flag--set replicaCount=2 \
Run lmotel with a particular image tag.
Note: The default image tag is the latest version.
--set image.tag=<lmotel_image_tag>
Modify the service name
Note: The default service name is lmotel-svc.
--set service.name=<new_service_name>
Upgrade the Helm Charts
Note: You can run the following command to keep your helm chart updated:

helm repo update

helm upgrade -n <namespace> \ --set service.name=<updated_service_name> \ --set service.ports.http=<updated_http_port> \ lmotel logicmonitor/lmotel

In This Article