Resource is an input type that runs a resource input by its name. This input allows you to run the same configured input resource in multiple places.
Resource inputs also have the advantage of name based metrics and logging. For example, the config:
Is equivalent to:
But now the metrics path of Kafka input will be
resources.inputs.foo, this way of flattening observability
labels becomes more useful as configs get larger and more nested.