| 1 |
# Forward Connector |
| 2 |
|
| 3 |
<!-- status autogenerated section --> |
| 4 |
| Status | | |
| 5 |
| ------------- |-----------| |
| 6 |
| Distributions | [core], [contrib], [k8s] | |
| 7 |
| Issues | [](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aopen+is%3Aissue+label%3Aconnector%2Fforward) [](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aclosed+is%3Aissue+label%3Aconnector%2Fforward) | |
| 8 |
|
| 9 |
[development]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#development |
| 10 |
[beta]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#beta |
| 11 |
[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol |
| 12 |
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib |
| 13 |
[k8s]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-k8s |
| 14 |
|
| 15 |
## Supported Pipeline Types |
| 16 |
|
| 17 |
| [Exporter Pipeline Type] | [Receiver Pipeline Type] | [Stability Level] | |
| 18 |
| ------------------------ | ------------------------ | ----------------- | |
| 19 |
| profiles | profiles | [development] | |
| 20 |
| traces | traces | [beta] | |
| 21 |
| metrics | metrics | [beta] | |
| 22 |
| logs | logs | [beta] | |
| 23 |
|
| 24 |
[Exporter Pipeline Type]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#exporter-pipeline-type |
| 25 |
[Receiver Pipeline Type]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#receiver-pipeline-type |
| 26 |
[Stability Level]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#stability-levels |
| 27 |
<!-- end autogenerated section --> |
| 28 |
|
| 29 |
The `forward` connector can merge or fork pipelines of the same type. |
| 30 |
|
| 31 |
## Configuration |
| 32 |
|
| 33 |
If you are not already familiar with connectors, you may find it helpful to first visit the [Connectors README]. |
| 34 |
|
| 35 |
The `forward` connector does not have any configuration settings. |
| 36 |
|
| 37 |
```yaml |
| 38 |
receivers: |
| 39 |
foo: |
| 40 |
exporters: |
| 41 |
bar: |
| 42 |
connectors: |
| 43 |
forward: |
| 44 |
``` |
| 45 |
|
| 46 |
### Example Usage |
| 47 |
|
| 48 |
Annotate distinct log streams, then merge them together, and export. |
| 49 |
|
| 50 |
```yaml |
| 51 |
receivers: |
| 52 |
foo/blue: |
| 53 |
foo/green: |
| 54 |
processors: |
| 55 |
attributes/blue: |
| 56 |
attributes/green: |
| 57 |
exporters: |
| 58 |
bar: |
| 59 |
connectors: |
| 60 |
forward: |
| 61 |
service: |
| 62 |
pipelines: |
| 63 |
logs/blue: |
| 64 |
receivers: [foo/blue] |
| 65 |
processors: [attributes/blue] |
| 66 |
exporters: [forward] |
| 67 |
logs/green: |
| 68 |
receivers: [foo/green] |
| 69 |
processors: [attributes/green] |
| 70 |
exporters: [forward] |
| 71 |
logs: |
| 72 |
receivers: [forward] |
| 73 |
exporters: [bar] |
| 74 |
``` |
| 75 |
|
| 76 |
Preprocess data, then replicate and handle in distinct ways. |
| 77 |
|
| 78 |
```yaml |
| 79 |
receivers: |
| 80 |
foo: |
| 81 |
processors: |
| 82 |
resourcedetection: |
| 83 |
sample: |
| 84 |
attributes: |
| 85 |
exporters: |
| 86 |
bar/hot: |
| 87 |
bar/cold: |
| 88 |
connectors: |
| 89 |
forward: |
| 90 |
service: |
| 91 |
pipelines: |
| 92 |
traces: |
| 93 |
receivers: [foo] |
| 94 |
processors: [resourcedetection] |
| 95 |
exporters: [forward] |
| 96 |
traces/hot: |
| 97 |
receivers: [forward] |
| 98 |
processors: [sample] |
| 99 |
exporters: [bar/hot] |
| 100 |
traces/cold: |
| 101 |
receivers: [forward] |
| 102 |
processors: [attributes] |
| 103 |
exporters: [bar/cold] |
| 104 |
``` |
| 105 |
|
| 106 |
Add a temporary debugging exporter. (Uncomment to enable.) |
| 107 |
|
| 108 |
```yaml |
| 109 |
receivers: |
| 110 |
foo: |
| 111 |
processors: |
| 112 |
filter: |
| 113 |
exporters: |
| 114 |
bar: |
| 115 |
# connectors: |
| 116 |
# forward: |
| 117 |
service: |
| 118 |
pipelines: |
| 119 |
traces: |
| 120 |
receivers: |
| 121 |
- foo |
| 122 |
processors: |
| 123 |
- filter |
| 124 |
exporters: |
| 125 |
- bar |
| 126 |
# - forward |
| 127 |
# traces/log: |
| 128 |
# receivers: [forward] |
| 129 |
# exporters: [debug] |
| 130 |
``` |
| 131 |
|
| 132 |
[Connectors README]:../README.md |