otel: collectors drop their own export-failure lines instead of shipping them
This commit is contained in:
parent
f5e99fe248
commit
3fa926d7d6
1 changed files with 115 additions and 3 deletions
|
|
@ -103,6 +103,24 @@ let
|
|||
name = "the agent forwarder's journald receiver carries the shared PRIORITY mapping";
|
||||
ok = carriesJournaldSeverity (agentSettings agentOtel).receivers.journald;
|
||||
}
|
||||
{
|
||||
# The forwarder reads its own journal, which holds its own exporter
|
||||
# failures. Presence control: the resource processor is still listed.
|
||||
name = "the agent forwarder drops its own export-failure lines before exporting";
|
||||
ok =
|
||||
let
|
||||
s = agentSettings agentOtel;
|
||||
p = s.service.pipelines.logs.processors;
|
||||
in
|
||||
p == [
|
||||
"filter/drop-own-export-failures"
|
||||
"resource"
|
||||
]
|
||||
&& s.processors ? "filter/drop-own-export-failures"
|
||||
&& lib.hasInfix "opentelemetry-collector.service" (
|
||||
lib.head s.processors."filter/drop-own-export-failures".logs.log_record
|
||||
);
|
||||
}
|
||||
{
|
||||
# The hop's two ends: what it reads, and where what it reads goes.
|
||||
# The endpoint is compared against the value the fixture handed the
|
||||
|
|
|
|||
Loading…
Reference in a new issue