Middleware
Send logs, metrics, and traces to Middleware using the OpenTelemetry Protocol (OTLP) HTTP exporter.
Supported Telemetry Types
✓
✓
✓
Prerequisites
Before configuring the Middleware destination, ensure you have:
A running Middleware instance
Your Middleware instance name
A Middleware API key for authentication
Network connectivity from your Bindplane agent to the Middleware instance
At least one telemetry type selected (logs, metrics, or traces)
For help with Middleware setup, see the Middleware documentation.
Configuration
Choose Telemetry Type
Selector
Logs, Metrics, Traces
Select which types of telemetry to export
Yes
Middleware Instance Name
String
-
Middleware instance name to send telemetry to
Yes
API Token
String
-
API Token for authenticating with the Middleware API
Yes
Advanced Configuration
General Settings
Settings for controlling log processing and timeout behavior.
Drop Raw Copy
Boolean
true
Drop the raw copy of the log record stored in log.record.original
No
Timeout
Integer
30
Timeout in seconds for sending batches to Middleware
Yes
Retry and Queuing
This destination supports the retry settings, the sending queue settings, and the persistent queue settings.
✓
✓
✓
Examples

Configuration Tips
Telemetry Type Selection
All telemetry types (default): Export logs, metrics, and traces for comprehensive observability
Custom selection: Choose only the telemetry types you need to optimize resource usage
Flexible configuration: Can be changed at any time without redeploying
Instance Name and API Token
Instance name must match your Middleware instance identifier
API token provides secure authentication
Keep API token secure; use environment variables or secret management systems
Store credentials in a secure location and never commit them to version control
Raw Copy Handling
Enable Drop Raw Copy to reduce storage for log telemetry
Disable only if you need the original raw log record for debugging
Default behavior (enabled) is recommended for production environments
Security Best Practices
Store API tokens securely using environment variables or secret management systems
Regularly rotate API tokens per your security policy
Monitor token usage for suspicious activity
Never share API tokens outside your organization
Performance Tuning
Increase Queue Size for high-volume telemetry collection
Adjust Number of Consumers based on available CPU and network bandwidth
Enable Persistent Queuing for mission-critical data
Enable Synchronize Persistent Queue to Disk in critical environments for data durability
Multi-Telemetry Considerations
Each telemetry type is routed to its appropriate Middleware receiver automatically
Compression is applied automatically to all telemetry types
Retry and queue settings apply uniformly across all selected types
Custom resource attributes can be added via resource processors in your configuration
Troubleshooting
Connection Refused or Timeout
Symptoms: Telemetry is not being sent; connection timeout errors in logs.
Solutions:
Verify Middleware instance is running and accessible
Verify the instance name is correct
Verify firewall rules allow outbound HTTPS traffic
Check that the API token is valid
Authentication Failures
Symptoms: "401 Unauthorized" or authentication errors in logs.
Solutions:
Verify the API token is correct and valid
Check that the token hasn't expired
Ensure the token has appropriate permissions for your Middleware instance
Verify both the instance name and API token are correctly configured
Check Middleware logs for authentication errors
Telemetry Not Appearing
Symptoms: Telemetry is sent but doesn't appear in Middleware UI or queries.
Solutions:
Verify the telemetry type is included in the configuration
Check that sources are generating telemetry
Verify proper routing and processing of telemetry data
Check Middleware ingestion logs for errors or rejections
Ensure the instance name matches the one used in Middleware
High Queue Depth
Symptoms: Sending queue is consistently full; telemetry may be dropped if persistent queuing is disabled.
Solutions:
Verify Middleware instance can handle the telemetry volume
Check for network latency or bandwidth issues
Increase Queue Size to buffer more telemetry
Increase Number of Consumers to process batches faster
Enable Persistent Queuing to prevent data loss during outages
Consider distributing telemetry across multiple Middleware instances
Performance Issues
Symptoms: High CPU or memory usage; slow telemetry ingestion.
Solutions:
Monitor Bindplane agent CPU and memory usage
Consider reducing telemetry volume at the source (sampling, filtering)
Disable Synchronize Persistent Queue to Disk if enabled (unless data integrity is critical)
Verify network connectivity and latency to Middleware
Consider batching at the source to reduce telemetry frequency
Data Loss
Symptoms: Telemetry is dropped after restarts or network outages.
Solutions:
Enable Persistent Queuing
Verify persistent queue directory exists and has write permissions
Monitor queue size to ensure it's not overflowing
Enable Retry on Failure to handle transient failures
Check available disk space for persistent queue storage
For critical environments, enable Synchronize Persistent Queue to Disk
Review logs for exporter errors or capacity issues
Related Resources
Last updated
Was this helpful?