Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
madaraszg-tulip committed Dec 9, 2024
1 parent fad70bc commit 5e5af96
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,18 @@ Name | Type | Description | Default |
`routing_key` | `string` | Routing strategy for load balancing. | `"traceID"` | no

The `routing_key` attribute determines how to route signals across endpoints. Its value could be one of the following:
* `"service"`: spans with the same `service.name` will be exported to the same backend.
- `"service"`: spans/logs/metrics with the same `service.name` will be exported to the same backend.
This is useful when using processors like the span metrics, so all spans for each service are sent to consistent {{< param "PRODUCT_NAME" >}} instances
for metric collection. Otherwise, metrics for the same services would be sent to different instances, making aggregations inaccurate.
* `"traceID"`: spans belonging to the same traceID will be exported to the same backend.
- `"traceID"`: spans/logs belonging to the same traceID will be exported to the same backend.
- `"resource"`: metrics belonging to the same resource will be exported to the same backend.
- `"metric"`: metrics with the same name will be exported to the same backend
- `"streamID"`: metrics with the same streamID will be exported to the same backend

The loadbalancer will configure the exporter for the singal types supported by the `routing_key`

Metrics support in `otelcol.exporter.loadbalancing` is considered experimental, so an exporter
will be configured for metrics only if Alloy is run with `--stability-level=experimental`

## Blocks

Expand Down

0 comments on commit 5e5af96

Please sign in to comment.