cinnamon.opentelemetry.logs {
grpc-exporter {# The delay interval between two consecutive exports.
schedule-delay =1 second
# The maximum time an export will be allowed to run before being cancelled.
exporter-timeout =30 seconds
# The maximum number of logs that are kept in the queue before starting to drop.
max-queue-size =2048# The maximum batch size for every export. This must be smaller or equal to `max-queue-size`.
max-export-batch-size =512# Sets the OTLP endpoint to connect to. The endpoint must start with either http:// or https://.
endpoint ="http://localhost:4317"# The maximum time to wait for the collector to process an exported batch of logs.
timeout =10 seconds
# The maximum time to wait for new connections to be established.
connect-timeout =10 seconds
# The method used to compress payloads. If "none", compression is disabled. Currently supported compression methods include "gzip" and "none".
compression ="none"# Add header to request. Optional.
headers {# some-key = "some value"}# Set the retry policy. Retry is disabled by default.retry-policy ="none"# Enabled when `retry-policy = "default-retry-policy"`. Configured to use the defaults.default-retry-policy {# Set the maximum number of attempts, including the original request. Must be greater than 1 and less than 6.
max-attempts =5# Set the initial backoff. Must be greater than 0.
initial-backoff =1 second
# Set the maximum backoff. Must be greater than 0.
max-backoff =5 seconds
# Set the backoff multiplier. Must be greater than 0.0.
backoff-multiplier =1.5}}}
Note
These settings are defined in the reference.conf. You only need to specify any of these settings when you want to override the defaults.
HTTP Log Record Exporter
To use the HTTP exporter to export logs to OpenTelemetry you need to provide the following configuration:
cinnamon.opentelemetry.logs {
http-exporter {# The delay interval between two consecutive exports.
schedule-delay =1 second
# The maximum time an export will be allowed to run before being cancelled.
exporter-timeout =30 seconds
# The maximum number of logs that are kept in the queue before starting to drop.
max-queue-size =2048# The maximum batch size for every export. This must be smaller or equal to `max-queue-size`.
max-export-batch-size =512# Sets the OTLP endpoint to connect to. The endpoint must start with either http:// or https://, and include the full HTTP path.
endpoint ="http://localhost:4318/v1/logs"# Sets the maximum time to wait for the collector to process an exported batch of logs.
timeout =10 seconds
# The maximum time to wait for new connections to be established.
connect-timeout =10 seconds
# Sets the method used to compress payloads. If "none", compression is disabled. Currently supported compression methods include "gzip" and "none".
compression ="none"# Add header to request. Optional.
headers {# some-key = "some value"}# Set the retry policy. Retry is disabled by default.retry-policy ="none"# Enabled when `retry-policy = "default-retry-policy"`. Configured to use the defaults.default-retry-policy {# Set the maximum number of attempts, including the original request. Must be greater than 1 and less than 6.
max-attempts =5# Set the initial backoff. Must be greater than 0.
initial-backoff =1 second
# Set the maximum backoff. Must be greater than 0.
max-backoff =5 seconds
# Set the backoff multiplier. Must be greater than 0.0.
backoff-multiplier =1.5}}}
Note
These settings are defined in the reference.conf. You only need to specify any of these settings when you want to override the defaults.
System out log record exporter
To use the system out exporter you need to provide the following configuration: