outlet/flow: persist decoders' state

Currently, for NetFlow, persist data/options templates and options. This
should allow the outlet to restart without loosing any message.

Fix #2100
This commit is contained in:
Vincent Bernat
2025-11-17 18:01:17 +01:00
parent 7c0a8db76d
commit cb92fc7199
17 changed files with 533 additions and 31 deletions

View File

@@ -47,7 +47,7 @@ func New(r *reporter.Reporter, dependencies decoder.Dependencies) decoder.Decode
}
nd.collection = templateAndOptionCollection{
nd: nd,
collection: make(map[string]*templatesAndOptions),
Collection: make(map[string]*templatesAndOptions),
}
nd.metrics.errors = nd.r.CounterVec(