Skip to content

Commit d968a30

Browse files
concepts: data-pipeline: router: Add Mermaid chart
Signed-off-by: Alexa Kreizinger <[email protected]>
1 parent 05945fd commit d968a30

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

concepts/data-pipeline/router.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ description: Create flexible routing rules
66

77
Routing is a core feature that allows to **route** your data through Filters and finally to one or multiple destinations. The router relies on the concept of [Tags](../key-concepts.md) and [Matching](../key-concepts.md) rules
88

9-
![](<../../.gitbook/assets/logging\_pipeline\_routing (1) (1) (2) (2) (2) (2) (2) (2) (2) (1) (1).png>)
9+
```mermaid
10+
graph LR
11+
accTitle: Fluent Bit data pipeline
12+
accDescr: The Fluent Bit data pipeline includes input, a parser, a filter, a buffer, routing, and various outputs.
13+
A[Input] --> B[Parser]
14+
B --> C[Filter]
15+
C --> D[Buffer]
16+
D --> E((Routing))
17+
E --> F[Output 1]
18+
E --> G[Output 2]
19+
E --> H[Output 3]
20+
style E stroke:darkred,stroke-width:2px;
21+
```
1022

1123
There are two important concepts in Routing:
1224

@@ -77,7 +89,7 @@ The following example demonstrates how to route data from sources based on a reg
7789
7890
[OUTPUT]
7991
Name stdout
80-
Match_regex .*_sensor_[AB]
92+
Match_regex .*_sensor_[AB]
8193
```
8294

8395
In this configuration, the **Match_regex** rule is set to `.*_sensor_[AB]`. This regular expression will match any Tag that ends with "_sensor_A" or "_sensor_B", regardless of what precedes it.

0 commit comments

Comments
 (0)