#
stats
Collect metrics from other pipeline stages and emit aggregated statistics every interval seconds. Tracks standard metrics (errors, events, bytes) and supports custom metrics via extra. Memory usage (heap, RSS) is also emitted.
#
Config
Optional:
interval: How often in seconds to emit aggregated stats (default: 15)extra: Additional custom metric names to track
Standard Metrics:
errors: number of errorslatency: ms of a responseinFlight: number of inflight requestsrxEvents: number of events ingestedrxBytes: bytes receivedtxEvents: number of events shippedtxBytes: bytes shipped
#
Example
The STATS channels is a special built-in. LogEngine.stats() will emit errors to the STATS channel.
pipeline:
stats:
inputs: [STATS]
config:
interval: 300
extra: [banned]