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