fix passive-voice vale errors in docs + hive-otel module-eval test for the new journald receiver
This commit is contained in:
parent
02831fb5e9
commit
8e58ad8717
4 changed files with 22 additions and 16 deletions
|
|
@ -80,14 +80,21 @@ let
|
|||
# The tier in the middle. Its OTLP receiver takes both signals on one
|
||||
# port, so without this pipeline an agent's push is answered 404 on
|
||||
# `/v1/logs` — and a forwarder retrying into a 404 is indistinguish-
|
||||
# able from one with nothing to send. Compared against the metrics
|
||||
# pipeline's exporters rather than a name, so the two signals cannot
|
||||
# drift to different destinations.
|
||||
# able from one with nothing to send. `journald` joined the receiver
|
||||
# list for this collector's own host journal (hive-c0re's crash-watch
|
||||
# log line, see ./otel.nix) — both have to be present, in either
|
||||
# order, so this stays a set check rather than a list-equality one.
|
||||
# Compared against the metrics pipeline's exporters rather than a
|
||||
# name, so the two signals cannot drift to different destinations.
|
||||
name = "the hive collector forwards logs upstream, not only metrics";
|
||||
ok =
|
||||
(hiveOtelPipelines ? logs)
|
||||
&& hiveOtelPipelines.metrics.exporters != [ ]
|
||||
&& hiveOtelPipelines.logs.receivers == [ "otlp" ]
|
||||
&&
|
||||
lib.sort builtins.lessThan hiveOtelPipelines.logs.receivers == [
|
||||
"journald"
|
||||
"otlp"
|
||||
]
|
||||
&& hiveOtelPipelines.logs.exporters == hiveOtelPipelines.metrics.exporters;
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue