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
|
|
@ -117,6 +117,19 @@ let
|
|||
]
|
||||
&& hiveOtelPipelines.logs.exporters == hiveOtelPipelines.metrics.exporters;
|
||||
}
|
||||
{
|
||||
# Presence control: the resource processor is still listed after it.
|
||||
name = "the hive collector drops its own export-failure lines before its logs pipeline exports";
|
||||
ok =
|
||||
hiveOtelPipelines.logs.processors == [
|
||||
"filter/drop-own-export-failures"
|
||||
"resourcedetection"
|
||||
]
|
||||
&& hiveOtelSettings.processors ? "filter/drop-own-export-failures"
|
||||
&& lib.hasInfix "opentelemetry-collector.service" (
|
||||
lib.head hiveOtelSettings.processors."filter/drop-own-export-failures".logs.log_record
|
||||
);
|
||||
}
|
||||
{
|
||||
# `deltatocumulative` is metrics-only: naming it in a logs pipeline
|
||||
# kills the collector at startup rather than doing nothing. The second
|
||||
|
|
|
|||
Loading…
Reference in a new issue