queue collector exports on disk and retry without a time limit
This commit is contained in:
parent
701efadfe4
commit
eac7f2a7c1
1 changed files with 85 additions and 0 deletions
27
nix/otel-export-queue.nix
Normal file
27
nix/otel-export-queue.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Export settings every forwarding exporter in this tree attaches, imported by
|
||||
# both collector tiers (`host-modules/otel.nix`, `host-modules/swarm-otel.nix`).
|
||||
#
|
||||
# `sending_queue.storage` puts the queue on the `file_storage` extension, so
|
||||
# batches waiting for an exporter survive a collector restart. The journald
|
||||
# receiver saves its cursor before it hands an entry on: an entry sitting in an
|
||||
# in-memory queue when the exporter's target is down or the collector restarts
|
||||
# counts as consumed and is not read again.
|
||||
#
|
||||
# `queue_size` counts requests (batches), not records. When the queue is full
|
||||
# the exporter refuses new data and logs the drop; the oldest queued batches
|
||||
# are kept.
|
||||
#
|
||||
# `max_elapsed_time = "0s"` retries a failing batch until it is accepted.
|
||||
# The queue bound is what limits the disk used; the default of five minutes
|
||||
# gives up on a backlog that a store restart outlasts.
|
||||
{
|
||||
sending_queue = {
|
||||
enabled = true;
|
||||
storage = "file_storage";
|
||||
queue_size = 5000;
|
||||
};
|
||||
retry_on_failure = {
|
||||
enabled = true;
|
||||
max_elapsed_time = "0s";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue