Skip to content

Otel-collector_Upgrade v1.3.0 to v1.3.1

Otel-collector_Upgrade v1.3.0 to v1.3.1 in OTel Collector Upgrade Guide.

4 min read Updated SS RS

Note: This procedure upgrades the OpenTelemetry Collector on its own; to upgrade HEAL v2.3.4 to v2.4.1, follow Upgrading to HEAL v2.4.1.

Otel-collector_Upgrade v1.3.0 to v1.3.1#

Scope: Standalone and High Availability (HA) deployments

Prerequisites#

  • Access to the Heal server with Consul CLI.
  • Access to the OTel Collector Nomad job file (otel-collector.nomad).
  • Ensure the chown permissions on the centralized_logs directory.
  • For HA deployments: access to both node1 and node2 servers.

Installation#

1. Deploy the Latest Image: Download and deploy the latest OTel Collector image:

otel-collector_v1.3.1

2. Retrieve UID and GID from Consul: On the Heal server, run the following Consul commands to retrieve the user and group ID values:

consul kv get service/users/userid
consul kv get service/users/groupid

Note the output values for use in further steps.

3. Update the Nomad Job File:

a. Open otel-collector.nomad.

b. Locate the task section.

c. Below the driver entry, add the following env block, substituting the values retrieved from the Consul key:

task "otel-collector-node1" {
  driver = "docker"
  env {
    USER_ID  = "<userid>"
    GROUP_ID = "<groupid>"
  }
}

Example with populated values:

task "otel-collector-node1" {
  driver = "docker"
  env {
    USER_ID  = "1002"
    GROUP_ID = "1002"
  }
}

Note:

HA Deployments: If OTel Collector is running in High Availability mode, the env block must be added to both otel-collector-node1 and otel-collector-node2 task sections in the Nomad file.

d. Save the file.

4. Stop the OTel Collector: Stop the running OTel Collector Nomad job before applying file system changes.

5. Update Log Folder Permissions:

1. Log in to the server where otel-collector-node1 is running.

2. Navigate to the centralized_logs directory:

cd <a1home>/centralized_logs

3. Update ownership of the log folder:

chown -R <userid>:<groupid> otel-collector-node1/

4. Verify that the folder and file permissions have been updated to reflect the correct user.

Note:

HA Deployments: Repeat the step 5 on the server running otel-collector-node2.

6. Start the OTel Collector: Start the OTel Collector Nomad job once all changes have been applied.

Post Installation#

After the module is up and healthy, confirm the following:

1. Log folder permissions remain unchanged: Verify the ownership is not reverted after startup.

2. Check if the container user ID matches the host user ID: Log in to the server and run the following command inside the OTel Collector Docker container:

id appuser

The UID returned should match the <userid> value set in the Nomad job file.

No Sampling Data Droppage Calculation#

The following is the no-sampling data drop calculation:

  • Trace Metrics for Data Droppage
  • Trace Data Droppage Calculation

Trace Metrics for Data Droppage#

Following is the otel collector trace metrics for data droppage:

1. otelcol_receiver_accepted_spans: Number of trace spans successfully received and accepted by the collector receiver.

This represents the total incoming trace data into the collector pipeline.

For example: If applications send 100,000 spans and all are accepted:

otelcol_receiver_accepted_spans = 100000

This metric is the base value used for droppage calculation.

2. otelcol_receiver_refused_spans: Number of spans rejected by the receiver before entering the pipeline.

For example:

otelcol_receiver_refused_spans = 2000

These spans never enter the pipeline. And the reasons are as follows:

  • invalid payload
  • receiver throttling
  • collector overload
  • memory pressure

3. otelcol_processor_refused_spans: Number of spans refused by processors due to resource limits.

Most commonly caused by the memory-limiting processor.

For example:

otelcol_processor_refused_spans = 1500

This indicates the collector ran out of allowed memory and dropped spans.

4. otelcol_exporter_sent_spans: Number of spans successfully exported to a tracing backend, such as:

  • Jaeger
  • Grafana Tempo
  • Zipkin

For example:

otelcol_exporter_sent_spans = 98000

This represents spans successfully delivered to the backend.

5. otelcol_exporter_send_failed_spans: Number of spans that failed during export to the backend.

For example:

otelcol_exporter_send_failed_spans = 1000

These spans were processed but not delivered. And the reasons are as follows:

  • backend unavailable
  • network timeout
  • exporter errors

6. otelcol_exporter_enqueue_failed_spans: Number of spans dropped because the exporter queue was full.

This usually indicates backpressure from the backend.

For example:

otelcol_exporter_enqueue_failed_spans = 500

Trace Data Droppage Calculation#

Follow the steps below to trace the data drop:

1. Calculate Total Dropped Spans:

Total Dropped Spans = otelcol_receiver_refused_spans + otelcol_processor_refused_spans +
otelcol_exporter_send_failed_spans + otelcol_exporter_enqueue_failed_spans

2. Calculate Droppage Percentage:

Droppage % = (Total Dropped Spans / otelcol_receiver_accepted_spans +
otelcol_receiver_refused_spans) * 100

For example: Droppage Calculation,

Assume the following metrics:

otelcol_receiver_accepted_spans = 100000
otelcol_receiver_refused_spans = 2000
otelcol_processor_refused_spans = 1000
otelcol_exporter_send_failed_spans = 500
otelcol_exporter_enqueue_failed_spans = 500

1. Total Dropped:

Total Dropped = 2000 + 1000 + 500 + 500
Total Dropped = 4000 spans

2. Droppage Percentage:

Droppage % = (4000 / 100000 + 2000) * 100
Droppage % = 4%

3. Operational Droppage Check: A quick operational check used in many monitoring dashboards:

Dropped Spans = otelcol_receiver_accepted_spans + otelcol_receiver_refused_spans -
otelcol_exporter_sent_spans

For example:

102000 - 98000 = 4000 spans dropped

4. Recommended Minimum Metrics to Monitor

  • otelcol_receiver_accepted_spans
  • otelcol_receiver_refused_spans
  • otelcol_exporter_send_failed_spans
  • otelcol_exporter_sent_spans