Skip to content

Commit bb44689

Browse files
committed
Added missing YAML docs for Build with Static Configuration docs. Fixes #1735.
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent fb7975b commit bb44689

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

installation/sources/build-with-static-configuration.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,29 @@ sections.
3030
As an example, create a new `fluent-bit.conf` file with the following
3131
content:
3232

33-
```python copy
33+
{% tabs %}
34+
{% tab title="fluent-bit.yaml" %}
35+
36+
```yaml
37+
service:
38+
flush: 1
39+
daemon: off
40+
log_level: info
41+
42+
pipeline:
43+
inputs:
44+
- name: cpu
45+
46+
outputs:
47+
- name: stdout
48+
match: '*'
49+
```
50+
51+
{% endtab %}
52+
53+
{% tab title="fluent-bit.conf" %}
54+
55+
```text
3456
[SERVICE]
3557
Flush 1
3658
Daemon off
@@ -44,6 +66,9 @@ content:
4466
Match *
4567
```
4668

69+
{% endtab %}
70+
{% endtabs %}
71+
4772
This configuration calculates CPU metrics from the running system and prints them
4873
to the standard output interface.
4974

@@ -77,4 +102,4 @@ Copyright (C) Treasure Data
77102

78103
[2018/10/19 15:32:31] [ info] [engine] started (pid=15186)
79104
[0] cpu.local: [1539984752.000347547, {"cpu_p"=>0.750000, "user_p"=>0.500000, "system_p"=>0.250000, "cpu0.p_cpu"=>1.000000, "cpu0.p_user"=>1.000000, "cpu0.p_system"=>0.000000, "cpu1.p_cpu"=>0.000000, "cpu1.p_user"=>0.000000, "cpu1.p_system"=>0.000000, "cpu2.p_cpu"=>0.000000, "cpu2.p_user"=>0.000000, "cpu2.p_system"=>0.000000, "cpu3.p_cpu"=>1.000000, "cpu3.p_user"=>1.000000, "cpu3.p_system"=>0.000000}]
80-
```
105+
```

0 commit comments

Comments
 (0)