Skip to content

Commit a372869

Browse files
authored
Standardizing on indents for YAML code examples on concpets router docs page. Fixes #2018. (#2019)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent a056b9e commit a372869

File tree

1 file changed

+47
-50
lines changed

1 file changed

+47
-50
lines changed

concepts/data-pipeline/router.md

Lines changed: 47 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,40 @@ Consider the following configuration example that delivers `CPU` metrics to an E
3636

3737
```yaml
3838
pipeline:
39-
inputs:
40-
- name: cpu
41-
tag: my_cpu
39+
inputs:
40+
- name: cpu
41+
tag: my_cpu
4242

43-
- name: mem
44-
tag: my_mem
43+
- name: mem
44+
tag: my_mem
4545

46-
outputs:
47-
- name: es
48-
match: my_cpu
46+
outputs:
47+
- name: es
48+
match: my_cpu
4949

50-
- name: stdout
51-
match: my_mem
50+
- name: stdout
51+
match: my_mem
5252
```
5353
5454
{% endtab %}
55-
5655
{% tab title="fluent-bit.conf" %}
5756
5857
```text
5958
[INPUT]
60-
Name cpu
61-
Tag my_cpu
59+
Name cpu
60+
Tag my_cpu
6261

6362
[INPUT]
64-
Name mem
65-
Tag my_mem
63+
Name mem
64+
Tag my_mem
6665

6766
[OUTPUT]
68-
Name es
69-
Match my_cpu
67+
Name es
68+
Match my_cpu
7069

7170
[OUTPUT]
72-
Name stdout
73-
Match my_mem
71+
Name stdout
72+
Match my_mem
7473
```
7574

7675
{% endtab %}
@@ -87,34 +86,33 @@ Routing is flexible enough to support wildcards in the `Match` pattern. The foll
8786

8887
```yaml
8988
pipeline:
90-
inputs:
91-
- name: cpu
92-
tag: my_cpu
89+
inputs:
90+
- name: cpu
91+
tag: my_cpu
9392

94-
- name: mem
95-
tag: my_mem
93+
- name: mem
94+
tag: my_mem
9695

97-
outputs:
98-
- name: stdout
99-
match: 'my_*'
96+
outputs:
97+
- name: stdout
98+
match: 'my_*'
10099
```
101100
102101
{% endtab %}
103-
104102
{% tab title="fluent-bit.conf" %}
105103
106104
```text
107105
[INPUT]
108-
Name cpu
109-
Tag my_cpu
106+
Name cpu
107+
Tag my_cpu
110108

111109
[INPUT]
112-
Name mem
113-
Tag my_mem
110+
Name mem
111+
Tag my_mem
114112

115113
[OUTPUT]
116-
Name stdout
117-
Match my_*
114+
Name stdout
115+
Match my_*
118116
```
119117

120118
{% endtab %}
@@ -131,37 +129,36 @@ Routing also provides support for regular expressions with the `Match_Regex` pat
131129

132130
```yaml
133131
pipeline:
134-
inputs:
135-
- name: temperature_sensor
136-
tag: temp_sensor_A
132+
inputs:
133+
- name: temperature_sensor
134+
tag: temp_sensor_A
137135

138-
- name: humidity_sensor
139-
tag: humid_sensor_B
136+
- name: humidity_sensor
137+
tag: humid_sensor_B
140138

141-
outputs:
142-
- name: stdout
143-
match: '.*_sensor_[AB]'
139+
outputs:
140+
- name: stdout
141+
match: '.*_sensor_[AB]'
144142
```
145143
146144
{% endtab %}
147-
148145
{% tab title="fluent-bit.conf" %}
149146
150147
```text
151148
[INPUT]
152-
Name temperature_sensor
153-
Tag temp_sensor_A
149+
Name temperature_sensor
150+
Tag temp_sensor_A
154151

155152
[INPUT]
156-
Name humidity_sensor
157-
Tag humid_sensor_B
153+
Name humidity_sensor
154+
Tag humid_sensor_B
158155

159156
[OUTPUT]
160-
Name stdout
161-
Match_regex .*_sensor_[AB]
157+
Name stdout
158+
Match_regex .*_sensor_[AB]
162159
```
163160

164161
{% endtab %}
165162
{% endtabs %}
166163

167-
In this configuration, the `Match_regex` rule is set to `.*_sensor_[AB]`. This regular expression matches any `Tag` that ends with `_sensor_A` or `_sensor_B`, regardless of what precedes it. This approach provides a more flexible and powerful way to handle different source tags with a single routing rule.
164+
In this configuration, the `Match_regex` rule is set to `.*_sensor_[AB]`. This regular expression matches any `Tag` that ends with `_sensor_A` or `_sensor_B`, regardless of what precedes it. This approach provides a more flexible and powerful way to handle different source tags with a single routing rule.

0 commit comments

Comments
 (0)