This document lists some of the most useful metrics exposed by Benthos, there are lots of more granular metrics available that may not appear here which will depend on your pipeline configuration.
Paths are listed here in dot notation, which is how they will appear if aggregated by Statsd. Other metrics destinations such as Prometheus will display these metrics with other notations (underscores instead of dots.)
input.count: The number of times the input has attempted to read messages.
input.received: The number of messages received by the input.
input.batch.received: The number of message batches received by the input.
input.latency: Measures the roundtrip latency from the point at which a message is read up to the moment the message has either been acknowledged by an output or has been stored within an external buffer.
buffer.backlog: The (sometimes estimated) size of the buffer backlog in bytes.
buffer.latency: Measures the roundtrip latency from the point at which a message is read from the buffer up to the moment it has been acknowledged by the output.
Processor metrics are prefixed by the area of the Benthos pipeline they reside
in and their index. For example, processors in the
pipeline section will be
pipeline.processor.N, where N is the index.
output.count: The number of times the output has attempted to send messages.
output.sent: The number of messages sent.
output.batch.sent: The number of message batches sent.
output.batch.bytes: The total number of bytes sent.
output.batch.latency: Latency of message batch write in nanoseconds. Includes only sucessful attempts.