Path: blob/main/docs/sources/flow/reference/config-blocks/export.md
5330 views
------export block
export is an optional configuration block used to specify an emitted value of a [Module][Modules]. export blocks must be given a label which determine the name of the export.
The export block may not be specified in the main configuration file given to Grafana Agent Flow.
[Modules]: {{< relref "../../concepts/modules.md" >}}
Example
Arguments
The following arguments are supported:
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
value | any | Value to export. | yes |
The value argument determines what the value of the export will be. To expose an exported field of another component to the module loader, set value to an expression which references that exported value.
Exported fields
The export block does not export any fields.
Example
This example creates a module where the output of discovering Kubernetes pods and nodes are exposed to the module loader: