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
|
|
@ -682,6 +682,9 @@ in
|
|||
# clean, an invalid key is rejected (`otelcol-contrib validate`).
|
||||
processors.deltatocumulative = { };
|
||||
|
||||
# `journalUnits` may name this collector's own unit.
|
||||
processors."filter/drop-own-export-failures" = import ../collector-own-export-failures.nix;
|
||||
|
||||
service.pipelines.metrics = {
|
||||
# EXTENDED, not replaced. Assigning here instead of appending
|
||||
# would drop `otlp` — the hive would stop receiving from its
|
||||
|
|
@ -744,7 +747,10 @@ in
|
|||
# failure rather than a no-op. Host identity applies to both
|
||||
# signals for the same reason — a line is only comparable
|
||||
# across hives once it says which machine collected it.
|
||||
processors = [ "resourcedetection" ];
|
||||
processors = [
|
||||
"filter/drop-own-export-failures"
|
||||
"resourcedetection"
|
||||
];
|
||||
exporters = [ swarmName ];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue