benchmark
Logs basic throughput statistics of messages that pass through this processor.
# Config fields, showing default valueslabel: ""benchmark: interval: 5s count_bytes: true
Logs messages per second and bytes per second of messages that are processed at a regular interval. A summary of the amount of messages processed over the entire lifetime of the processor will also be printed when the processor shuts down.
The following metrics are exposed:
- benchmark_messages_per_second (gauge): The current throughput in messages per second
- benchmark_messages_total (counter): The total number of messages processed
- benchmark_bytes_per_second (gauge): The current throughput in bytes per second
- benchmark_bytes_total (counter): The total number of bytes processed
Fields
interval
How often to emit rolling statistics. If set to 0, only a summary will be logged when the processor shuts down.
Type: string
Default: "5s"
count_bytes
Whether or not to measure the number of bytes per second of throughput. Counting the number of bytes requires serializing structured data, which can cause an unnecessary performance hit if serialization is not required elsewhere in the pipeline.
Type: bool
Default: true