lmotel

by LogicMonitor

Helm chartv1.10.0App v2.0.10Verified publisher

Logicmonitor's distribution of OpenTelemetry Collector

About this chart

LMOTEL

Run logicmonitor otel collector

This chart deploy a lmotel collector to collect and forward traces, and spans to Logicmonitor

Prerequisite

Deploy new collector

  1. Add/Update the logicmonitor repo
helm repo add logicmonitor https://logicmonitor.github.io/helm-charts

OR

helm repo update
  1. Install the lmotel chart, filling in the below values. Using Bearer token
helm install -n <namespace> \
--set lm.account=<lm_company_name> \
--set lm.bearer_token=<lm_bearer_token> \
--set lm.otel_name=<lmotel_collector_name> \
--set lm.otel_version=<lmotel_collector_version> \
--set replicaCount=<number_of_replicas> \
lmotel logicmonitor/lmotel

With LM_V1 token

helm install -n <namespace> \
--set lm.account=<lm_company_name> \
--set lm.access_id=<lm_access_id> \
--set lm.access_key=<lm_access_key> \
--set lm.otel_name=<lmotel_collector_name> \
--set lm.otel_version=<lmotel_collector_version> \
--set replicaCount=<number_of_replicas> \
lmotel logicmonitor/lmotel

Installing lmotel chart with external config Using Bearer token

helm install -n <namespace> \
--set lm.account=<lm_company_name> \
--set lm.bearer_token=<lm_bearer_token> \
--set lm.otel_name=<lmotel_collector_name> \
--set lm.otel_version=<lmotel_collector_version> \
--set replicaCount=<number_of_replicas> \
--set-file=external_config.lmconfig=<custom_configuration_path> \
lmotel logicmonitor/lmotel

With LM_V1 token

helm install -n <namespace> \
--set lm.account=<lm_company_name> \
--set lm.access_id=<lm_access_id> \
--set lm.access_key=<lm_access_key> \
--set lm.otel_name=<lmotel_collector_name> \
--set lm.otel_version=<lmotel_collector_version> \
--set replicaCount=<number_of_replicas> \
--set-file=external_config.lmconfig=<custom_configuration_path> \
lmotel logicmonitor/lmotel

User Defined Secret for LM credentials

You can create a kubernetes secret with your LM credentials and pass the secret name to the chart. The secret must contain the following keys:

  • account
  • accessID
  • accessKey
  • bearerToken (for bearer-only auth), and/or accessID + accessKey (for LMv1). At least one complete set is required; the collector prefers LMv1 when both LMv1 credentials and a bearer token are present.

Example install:

helm install -n <namespace> \
  --set global.userDefinedSecret=<your-secret-name> \
  --set lm.otel_name=<lmotel_collector_name> \
  lmotel logicmonitor/lmotel

When lmotel is installed as a dependency of lm-container, set global.userDefinedSecret on the parent release (for example in lm-container-configuration.yaml). Helm merges that root global into lmotel and it overrides lmotel.global.userDefinedSecret for the same key, so one umbrella-level Secret name stays authoritative.

To enable logs add the following option

--set logs.enable=true \

To enable proxy support:

  • Without global.userDefinedSecret: set a plain value (same as before):
--set envVars.HTTPS_PROXY=<proxy_server_ip_or_url> \
  • With global.userDefinedSecret: add a Secret data key https_proxy (base64-encoded value). The chart sets container env HTTPS_PROXY from that key via secretKeyRef (optional: true). In that case envVars.HTTPS_PROXY is ignored if set, to avoid duplicate env names.

Required Values:

  • account (default: ""): The LogicMonitor account name.
  • bearer_token (default: ""): Bearer token of user having Data Ingestion permissions.

or

  • access_id (default: ""): The LogicMonitor access key.

  • access_key (default: ""): Access key for logicmonitor account

  • otel_name (default: ""): The LogicMonitor Otel Collector name.


Optional Values:

  • replicaCount (default: 1): Number of replicas of lmotel kubernetes pod.
  • otel_version (default: ""): Lmotel collector version.
  • global.userDefinedSecret (default: ""): Existing Secret for LM credentials (keys account, and either accessID+accessKey and/or bearerToken). At least one complete LMv1 pair or bearer token must be present; the collector prefers LMv1 when both are available. Optional key https_proxy supplies HTTPS_PROXY in the pod when this Secret is used.
  • arguments : command line arguments for lmotel, can be passed as {--log-level, DEBUG}, other options can be added using comma separated values.

For using external lmotel configuration

Required Values:

  • account (default: ""): The LogicMonitor account name.
  • bearer_token (default: ""): Bearer token of user having Data Ingestion permissions.
  • otel_name (default: ""): The LogicMonitor Otel Collector name.
  • external_config.lmconfig: Path to your external configuration

Optional Values:

  • replicaCount (default: 1): Number of replicas of lmotel kubernetes pod.
  • otel_version (default: ""): Lmotel collector version.

For using ingress configuration

Required Values:

  • account (default: ""): The LogicMonitor account name.
  • bearer_token (default: ""): Bearer token of user having Data Ingestion permissions.
  • otel_name (default: ""): The LogicMonitor Otel Collector name.
  • ingress.host (default: ""): Hostname for the ingress rule
  • ingress.enabled (default: false): This is required to be set true to use ingress

Optional Values:

  • replicaCount (default: 1): Number of replicas of lmotel kubernetes pod.
  • otel_version (default: ""): Lmotel collector version.
  • ingress.ingressClassName (default: ""): (Introduced in Kubernetes 1.18) It is a reference to an IngressClass resource that contains additional Ingress configuration, including the name of the Ingress controller.
  • ingress.tls.secretName (default: ""): Name of the TLS secret containing the TLS certificates for the hostname.
  • ingress.annotations (default: {}): Annotations common to all the ingress resource definitions.
  • ingress.http.annotations (default: {}): Annotations specific to the ingress-http resource
  • ingress.grpc.annotations (default: {}): Annotations specific to the ingress-grpc resource

Deploy lmotel with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lmotel on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlmotel is pinned at v1.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply