whitelist

Whitelist metric paths within Benthos so that only matching metric paths are aggregated by a child metric target.

metrics:
whitelist:
paths: []
patterns: []
child: {}

Whitelists can either be path prefixes or regular expression patterns, if either a path prefix or regular expression matches a metric path it will be included.

Metrics must be matched using dot notation even if the chosen output uses a different form. For example, the path would be 'foo.bar' rather than 'foo_bar' even when sending metrics to Prometheus. A full list of metrics paths that Benthos registers can be found in this list.

Fields

paths

array A list of path prefixes to include. This can be used, for example, to allow all of the child specific metrics paths from an output broker with the path output.broker.

patterns

array A list of RE2 regular expressions to include. This can be used, for example, to allow all of the latency based metrics with the pattern .*\.latency.

child

object A child metric type, this is where whitelisted metrics will be routed.

Debugging

In order to see logs breaking down which metrics are registered and whether they pass your whitelists enable logging at the TRACE level.