Watch
0
0
Fork
You've already forked hyperhive
0

pin that the hive collector keeps file_storage for its exporter queue without a journald receiver

This commit is contained in:
atlas 2026-11-01 16:18:33 +01:00 • committed by mara
commit 5ae0205e1d
2 changed files with 8 additions and 2 deletions

View file

@ -566,8 +566,9 @@ in
# ⚠️ An extension not listed here is INERT: the collector starts
# clean and the exporter naming it sends nothing authenticated —
# and, for `file_storage`, the journald receiver's `storage:`
# above would name a component the collector never starts.
# and, for `file_storage`, the exporter queue's `storage:` (and the journald
# receiver's, where it exists) would name a component the collector
# never starts.
service.extensions = [ "file_storage" ] ++ lib.optional senderAuth authName;
# Host identity, so a sample can say WHICH machine it came from.

View file

@ -490,6 +490,11 @@ let
&& !(s.receivers ? journald)
&& !(lib.elem "journald" s.service.pipelines.logs.receivers)
&& lib.elem "otlp" s.service.pipelines.logs.receivers
# `file_storage` stays: the exporter queue is on it whether or not a
# journald receiver exists.
&& s.extensions ? file_storage
&& lib.elem "file_storage" s.service.extensions
&& s.exporters."otlphttp/swarm".sending_queue.storage == "file_storage"
&& hiveOtelSettings.receivers ? journald;
}
{