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
|
|
@ -404,6 +404,23 @@ let
|
|||
&& hiveOtelSettings.extensions."oauth2client/swarm".endpoint_params.audience == "hive-h1"
|
||||
&& hiveOtelSettings.exporters."otlphttp/swarm".endpoint == "https://${otel.domain}/h1";
|
||||
}
|
||||
{
|
||||
# Same reason as the swarm tier's case in ./swarm-otel-core.nix: the
|
||||
# queue in front of the swarm exporter has to be on `file_storage` or a
|
||||
# restart drops what the journald receiver already counted as consumed.
|
||||
name = "the hive collector queues on disk and retries without a time limit";
|
||||
ok =
|
||||
let
|
||||
e = hiveOtelSettings.exporters."otlphttp/swarm";
|
||||
in
|
||||
e.sending_queue.enabled
|
||||
&& e.sending_queue.storage == "file_storage"
|
||||
&& e.sending_queue.queue_size > 0
|
||||
&& e.retry_on_failure.max_elapsed_time == "0s"
|
||||
&& e.endpoint == "https://${hiveOtel.services.hyperhive.swarm.otel.domain}/h1"
|
||||
&& hiveOtelSettings.extensions ? file_storage
|
||||
&& builtins.elem "file_storage" hiveOtelSettings.service.extensions;
|
||||
}
|
||||
];
|
||||
in
|
||||
runGroup "hive-otel" cases
|
||||
|
|
|
|||
Loading…
Reference in a new issue