Add metric for discarded lines to file
source
#14321
Labels
domain: observability
Anything related to monitoring/observing Vector
source: file
Anything `file` source related
source: kubernetes_logs
Anything `kubernetes_logs` source related
The
file
source increments a counter when it discards events (namelycomponent_discarded_events_total
). However, it may discard source data before they are translated into events. For example, if a source line is longer thanmax_line_bytes
, it is discarded within thefile-server
lib and, while an warning log is emitted, no counter is incremented to provide evidence.This condition should result in a counter being incremented, either
component_errors_total
with the notion that it represents malformed input data, or some other name if that is not appropriate.Ref: no metric on File source on max_byte_line exceeded #14144
The text was updated successfully, but these errors were encountered: