Skip to main content

OpenTelemetry Collector Insights

Thumbnail icon

The Sumo Logic OpenTelemetry Collector Insights app provides comprehensive monitoring and observability for your OpenTelemetry Collector instances. Monitor collector performance, telemetry data flow, resource utilization, and troubleshoot data collection issues with preconfigured dashboards and alerts. Track metrics and logs to ensure your telemetry pipeline is running smoothly and efficiently.

This app supports OpenTelemetry Collector version 0.130.1-sumo-0 and later versions.

We use the OpenTelemetry collector's built-in internal telemetry capabilities to collect metrics and logs about the collector itself. By default, the Collector exposes its own telemetry through internal metrics (via Prometheus interface on port 8888) and logs (emitted to stderr). The collector can also be configured to export its own telemetry data (metrics and logs) to Sumo Logic through OTLP/HTTP endpoints.

Fields creation in Sumo Logic for OpenTelemetry Collector Insights

Following are the fields which will be created as part of OpenTelemetry Collector Insights app installation, if not already present.

  • sumo.datasource. Has fixed value of otel_collector.
  • _contentType. Has fixed value of OpenTelemetry.
  • deployment.environment. User configured. Enter a name to identify your deployment environment.

Prerequisites

For OTLP endpoint configuration

Before configuring the OTEL Collector integration, ensure you have the following prerequisites in place:

  1. Sumo Logic OTLP Source: You need to create an OTLP source in your Sumo Logic hosted collector. The OTLP source will provide the endpoint URL that the OTEL Collector will use to send telemetry data.

Documentation: Creating a Sumo Logic OTLP Source

For metrics collection

The OpenTelemetry Collector must be configured to export its own metrics using the built-in telemetry capabilities. This requires:

  • OpenTelemetry Collector version 0.130.1-sumo-0 or later
  • Collector configured with telemetry metrics enabled at detailed level
  • Access to OTLP endpoint for metrics export
  • Internal metrics exposed on port 8888 (default)

For logs collection

The OpenTelemetry Collector must be configured to export its own logs using the built-in telemetry capabilities. This requires:

  • Collector configured with telemetry logs enabled at debug level (automatically configured in the provided template)
  • JSON encoding for structured log output (automatically configured in the provided template)
  • Access to OTLP endpoint for logs export

System Requirements

  • OTEL Collector v0.130.1-sumo-0 or later
  • Sufficient system resources (CPU, memory) for data processing
  • Proper permissions for the collector service to access configured resources

Collection configuration and app installation

As part of data collection setup and app installation, you can select the App from App Catalog and click on Install App. Follow the steps below.

Step 1: Set up collector

note

If you want to use an existing OpenTelemetry Collector, you can skip this step by selecting the Use an existing Collector option.

To create a new Collector:

  1. Select the Add a new Collector option.
  2. Select the platform where you want to install the Sumo Logic OpenTelemetry Collector.

This will generate a command that you can execute in the machine environment you need to monitor. Once executed, it will install the Sumo Logic OpenTelemetry Collector.

Step 2: Configure integration

OpenTelemetry works with a configuration YAML file with all the details concerning the data that needs to be collected.

In this step, you will configure the OpenTelemetry Collector's built-in telemetry to monitor itself.

Below are the inputs required:

  • OTLP Endpoint: Your Sumo Logic OTLP endpoint URL.
service:
telemetry:
logs:
level: debug
development: false
encoding: json
processors:
- batch:
exporter:
otlp:
protocol: http/protobuf
endpoint: ${OTLP_ENDPOINT}/v1/logs
metrics:
level: detailed
readers:
- periodic:
exporter:
otlp:
protocol: http/protobuf
endpoint: ${OTLP_ENDPOINT}/v1/metrics
resource:
_contentType: OpenTelemetry
sumo.datasource: otel_collector
deployment.environment: ${DEPLOYMENT_ENVIRONMENT}

You can add any custom fields which you want to tag along with the data ingested in Sumo.

note

If you're using a username and password with OpenTelemetry Collector version ≥ 0.104, we recommend using the downloaded config with an environment variable, for example: ${environment_variable}.

On Linux, click Download Environment Variables File to get a file that includes the password, which should be set as an environment variable.

YAML

Step 3: Send logs and metrics to Sumo Logic

Once you have downloaded the YAML file as described in the previous step, follow the below steps based on your platform.

  1. Add the telemetry configuration to your existing collector configuration file in /etc/otelcol-sumo/conf.d/ or directly in the main configuration file.
  2. Place Env file in the following directory:
/etc/otelcol-sumo/env/
  1. Restart the collector using:
sudo systemctl restart otelcol-sumo

After successfully executing the above command, Sumo Logic will start receiving data from your host machine.

Click Next. This will install the app (dashboards and monitors) to your Sumo Logic Org.

Dashboard panels will start to fill automatically. It's important to note that each panel fills with data matching the time range query and received since the panel was created. Results won't immediately be available, but within 20 minutes, you'll see full graphs and maps.

Validation

After installation, verify that:

  1. The OTEL Collector service is running.
  2. The configured base endpoint is reachable.
  3. Data is being successfully sent to both the logs (/v1/logs) and metrics (/v1/metrics) endpoints.
  4. Resource attributes are properly applied to the telemetry data.
  5. Internal metrics are accessible at http://localhost:8888/metrics.

Sample log messages

{
"timestamp": "2024-01-15T10:30:45.123Z",
"level": "info",
"msg": "Batch processor started",
"component": "batch",
"pipeline": "metrics"
}
{
"timestamp": "2024-01-15T10:30:46.456Z",
"level": "warn",
"msg": "Dropping data because sending_queue is full",
"component": "sumologicexporter",
"pipeline": "logs"
}

Sample metrics

{
"metric": "otelcol_processor_batch_batch_send_size",
"sumo.datasource": "otel_collector",
"_contentType": "OpenTelemetry",
"deployment.environment": "production",
"processor": "batch",
"value": 100,
"timestamp": "2024-01-15T10:30:45.123Z"
}
{
"metric": "otelcol_exporter_queue_size",
"sumo.datasource": "otel_collector",
"_contentType": "OpenTelemetry",
"deployment.environment": "production",
"exporter": "sumologic",
"value": 150,
"timestamp": "2024-01-15T10:30:45.123Z"
}

Key Internal Metrics

The OpenTelemetry Collector emits comprehensive internal metrics categorized by verbosity levels. For a complete list of internal metrics and their descriptions, see the OpenTelemetry Collector Internal Telemetry documentation.

Sample queries

This sample query is from the Pipeline Health Overview panel.

sumo.datasource=otel_collector
| json auto maxdepth 1 nodrop
| if (isEmpty(log), _raw, log) as _raw
| parse "* * * *" as timestamp, level, component, msg
| where level in ("error", "warn", "info", "debug")
| count by level, component
| transpose row component column level

This sample metrics query is from the Collector Resource Usage panel.

Sample metrics query
sumo.datasource=otel_collector metric=otelcol_process_memory_rss deployment.environment=* | avg by deployment.environment

This sample query monitors queue health from the Exporter Queue Health panel.

sumo.datasource=otel_collector metric=otelcol_exporter_queue_size deployment.environment=* 
| avg by exporter, deployment.environment

Viewing OpenTelemetry Collector Insights dashboards

All dashboards have a set of filters that you can apply to the entire dashboard. Use these filters to drill down and examine the data to a granular level.

  • You can change the time range for a dashboard or panel by selecting a predefined interval from a drop-down list, choosing a recently used time range, or specifying custom dates and times. Learn more.
  • You can use template variables to drill down and examine the data on a granular level. For more information, see Filtering Dashboards with Template Variables.
  • Log-based dashboards use the _sourceHost filter to identify specific collector instances.
  • Metrics-based dashboards use the service.instance.id filter to identify specific collector instances.

Overview

The OpenTelemetry Collector Insights - Overview dashboard provides a high-level view of your OpenTelemetry Collector fleet's health and performance. This is your starting point for monitoring collector instances.

Use this dashboard to:

  • Monitor the overall health of your collector fleet.
  • Identify performance bottlenecks and resource constraints.
  • Track data flow and processing rates across collectors.
  • Quickly spot collectors experiencing issues.
Overview

Logs

The OpenTelemetry Collector Insights - Logs dashboard provides detailed insights into collector log output for root-cause analysis of errors, data dropping events, and restarts.

Use this dashboard to:

  • Analyze error patterns and troubleshoot issues.
  • Monitor collector startup and shutdown events.
  • Identify data loss or processing problems.
  • Track log severity trends across your collector fleet.
Logs

Pipeline: Receiver Health

The OpenTelemetry Collector Insights - Pipeline: Receiver Health dashboard focuses exclusively on the data ingestion stage of the pipeline to monitor data sources and receiver performance.

Use this dashboard to:

  • Monitor receiver performance and data ingestion rates.
  • Identify issues with data sources and input connections.
  • Track receiver-specific errors and failures.
  • Analyze accepted vs refused data points.
Pipeline Receiver Health

Pipeline: Processor Health

The OpenTelemetry Collector Insights - Pipeline: Processor Health dashboard is crucial for understanding if any processors (like batch, memory_limiter, or resourcedetection) are dropping data or causing performance issues.

Use this dashboard to:

  • Monitor processor performance and throughput.
  • Identify data drops or processing bottlenecks.
  • Track processor-specific configurations and health.
  • Analyze batch processing efficiency and triggers.
Pipeline Processor Health

Pipeline: Exporter Health

The OpenTelemetry Collector Insights - Pipeline: Exporter Health dashboard is the most critical dashboard for diagnosing backpressure and data loss at the egress stage of the pipeline.

Use this dashboard to:

  • Monitor exporter performance and success rates.
  • Identify backpressure issues and export failures.
  • Track data delivery to downstream systems.
  • Analyze queue utilization and capacity.
Pipeline Exporter Health

Resource Utilization

The OpenTelemetry Collector Insights - Resource Utilization dashboard provides a deep dive into the collector's own resource consumption to diagnose performance issues and plan for capacity.

Use this dashboard to:

  • Monitor CPU, memory, and disk usage by collectors.
  • Plan capacity and resource allocation.
  • Identify resource constraints and optimization opportunities.
  • Track heap allocation and garbage collection patterns.
Resource Utilization

Troubleshooting

Common issues

Collector connection failure

If your collector fails to connect to Sumo Logic, you may need to configure proxy settings. Check the collector's logs for connection errors:

# On systemd systems
journalctl --unit otelcol-sumo

# Look for errors like "Unable to get a heartbeat"
High queue utilization

Monitor the otelcol_exporter_queue_size and otelcol_exporter_queue_capacity metrics. If the queue is consistently full, you may need to:

  • Reduce data ingestion rate
  • Increase queue capacity
  • Scale horizontally with more collectors
Data dropping

Watch for logs containing "Dropping data because sending_queue is full" and monitor failed enqueue metrics:

  • otelcol_exporter_enqueue_failed_spans
  • otelcol_exporter_enqueue_failed_metric_points
  • otelcol_exporter_enqueue_failed_log_records

Accessing collector metrics directly

By default, the collector's internal metrics are available in Prometheus format at http://localhost:8888/metrics. You can access them using:

curl http://localhost:8888/metrics

Log levels and configuration

Configure different log levels for troubleshooting:

  • DEBUG. Most verbose, includes detailed trace information
  • INFO. Standard operational information (default)
  • WARN. Warning messages about potential issues
  • ERROR. Error conditions that need attention

Create monitors for OpenTelemetry Collector Insights app

From your App Catalog:

  1. From the Sumo Logic navigation, select App Catalog.
  2. In the Search Apps field, search for and then select your app.
  3. Make sure the app is installed.
  4. Navigate to What's Included tab and scroll down to the Monitors section.
  5. Click Create next to the pre-configured monitors. In the create monitors window, adjust the trigger conditions and notifications settings based on your requirements.
  6. Scroll down to Monitor Details.
  7. Under Location click on New Folder.
    note

    By default, monitor will be saved in the root folder. So to make the maintenance easier, create a new folder in the location of your choice.

  8. Enter Folder Name. Folder Description is optional.
    tip

    Using app version in the folder name will be helpful to determine the versioning for future updates.

  9. Click Create. Once the folder is created, click on Save.

OpenTelemetry Collector Insights Alerts

NameDescriptionAlert ConditionRecover Condition
OpenTelemetry Collector Insights - Collector Instance is DownThis alert fires when a Collector instance stops sending telemetry for more than 10 minutes, indicating it is down or has a connectivity issue.Missing DataData Found
OpenTelemetry Collector Insights - Exporter Queue Nearing CapacityThis alert fires when an exporter's sending queue is over 90% full. This is a strong leading indicator of back pressure and imminent data loss.Count > = 90Count < 90
OpenTelemetry Collector Insights - High Memory Usage (RSS)This alert fires when a Collector's memory usage (RSS) exceeds 2GB. This could be an early indicator of a memory leak or an under-provisioned host.Count > 2000000000Count < = 2000000000
OpenTelemetry Collector Insights - High Metadata CardinalityThis alert fires when the batch processor is handling more than 1000 unique combinations of metadata. This is a known cause of performance degradation, high CPU, and high memory usage.Count > 1000Count < = 1000
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2025 by Sumo Logic, Inc.