I am trying to understand the behavior of queue_size in Alloy/OTel Collector when the exporter is down #13892
Replies: 1 comment
|
Your understanding is off by one detail, and it explains the whole observation: From the exporterhelper docs:
So If you want the limit expressed in records rather than batches, set the sizer: Available options are One more thing about your drop expectation: with Docs: exporterhelper README — the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Setup
Processor:
all other config is set to default
Test Scenario I am trying:
Log emit rate: 1 log/second
Exporter target: CloudWatch Logs
OTEL endpoint is down until I see the queue full error message in alloy
Observations
Exporter fully down
Logs are emitted at 1 log/sec
Around 90 logs are being stored in local storage
My understanding is that since the queue_size is only 10, there should be only 10 records in the log file
And from 11th on, logs should be dropped because (max_elapsed_time = 0) and queue is also full
is my understanding is correct?
can you please provide if there is any document which explain this in details with some examples
Thanks in Advance
Ashish Agrawal
All reactions