Skip to content

Commit 3ea86b8

Browse files
authored
Added missing YAML docs for Build with Static Configuration docs. Fixes #1735. (#1736)
* Added missing YAML docs for Build with Static Configuration docs. Fixes #1735. Signed-off-by: Eric D. Schabell <[email protected]> * Added clarifying text for yaml or conf files. Signed-off-by: Eric D. Schabell <[email protected]> --------- Signed-off-by: Eric D. Schabell <[email protected]>
1 parent fb7975b commit 3ea86b8

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

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

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,31 @@ directory must contain a minimum of one configuration file called
2727
[INPUT](/concepts/data-pipeline/input.md), and [OUTPUT](/concepts/data-pipeline/output.md)
2828
sections.
2929

30-
As an example, create a new `fluent-bit.conf` file with the following
31-
content:
30+
As an example, create a new `fluent-bit.yaml` file or `fluent-bit.conf` file with the corresponding content below:
31+
32+
{% tabs %}
33+
{% tab title="fluent-bit.yaml" %}
34+
35+
```yaml
36+
service:
37+
flush: 1
38+
daemon: off
39+
log_level: info
40+
41+
pipeline:
42+
inputs:
43+
- name: cpu
44+
45+
outputs:
46+
- name: stdout
47+
match: '*'
48+
```
49+
50+
{% endtab %}
51+
52+
{% tab title="fluent-bit.conf" %}
3253
33-
```python copy
54+
```text
3455
[SERVICE]
3556
Flush 1
3657
Daemon off
@@ -44,6 +65,9 @@ content:
4465
Match *
4566
```
4667

68+
{% endtab %}
69+
{% endtabs %}
70+
4771
This configuration calculates CPU metrics from the running system and prints them
4872
to the standard output interface.
4973

@@ -77,4 +101,4 @@ Copyright (C) Treasure Data
77101

78102
[2018/10/19 15:32:31] [ info] [engine] started (pid=15186)
79103
[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-
```
104+
```

0 commit comments

Comments
 (0)