Skip to content

Commit c572bcd

Browse files
committed
out_forward: Add service_discovery section
1 parent da81ba7 commit c572bcd

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

plugins/output/forward.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ The destination servers. Each server has the following parameters:
9595
- `password`
9696
- `standby`
9797
- `weight`
98-
98+
99+
If you want to manage destination servers by flexible approach, use `<service_discovery>` instead.
100+
99101
#### `host`
100102

101103
| type | default | version |
@@ -194,6 +196,20 @@ The load balancing weight. If the weight of one server is 20 and the
194196
weight of the other server is 30, events are sent in a 2:3 ratio. The
195197
default weight is 60.
196198

199+
### `<service_discovery>`
200+
201+
Use service discovery plugin instead of fixed `<server>` list. See also [Service Discovery Plugin Overview](/plugins/service_discovery/README.md) for more details.
202+
203+
```
204+
<match pattern>
205+
@type forward
206+
207+
<service_discovery>
208+
@type file
209+
path /path/to/servers.yaml
210+
</service_discovery>
211+
</source>
212+
```
197213

198214
### `require_ack_response`
199215

0 commit comments

Comments
 (0)