This receiver is used to receive telemetry routed from other pipelines.
- Logs
- Metrics
- Traces
- The user configures this receiver in a pipeline.
- The user configures a supported component to route telemetry to this receiver.
The route receiver does not have any configuration parameters. It simply receives telemetry from other components.
The following config is an example configuration of the route receiver. In this example, logs are collected from a file and sent to a log count processor. After each minute, the log counts are converted to metrics and sent to the route receiver in the metrics pipeline.
receivers:
filelog:
include: [./example/apache.log]
route/log-based-metrics:
processors:
batch:
logcount:
route: log-based-metrics
exporters:
googlecloud:
logging:
service:
pipelines:
logs:
receivers: [filelog]
processors: [batch, logcount]
exporters: [logging]
metrics:
receivers: [route/log-based-metrics]
processors: [batch]
exporters: [googlecloud]