Skip to content

Commit d44a034

Browse files
author
Patrick Stephens
committed
packaging: switch to YAML config files for Linux packages by default
Signed-off-by: Patrick Stephens <[email protected]>
1 parent e9a2f87 commit d44a034

14 files changed

+115
-13
lines changed

conf/fluent-bit-macos.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
service:
2+
flush: 1
3+
log_level: info
4+
http_server: false
5+
http_listen: 0.0.0.0
6+
http_port: 2020
7+
parsers_file: parsers.yaml
8+
plugins_file: plugins.yaml
9+
10+
pipeline:
11+
inputs:
12+
- name: dummy
13+
tag: dummy.local
14+
15+
outputs:
16+
- name: stdout
17+
match: '*'

conf/fluent-bit-metrics.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
[OUTPUT]
2020
name prometheus_exporter
2121
match node_metrics
22-
listen 0.0.0.0
22+
host 0.0.0.0
2323
port 2021
2424
# Add user-defined labels
2525
# -----------------------

conf/fluent-bit-metrics.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
service:
2+
flush: 1
3+
log_level: info
4+
5+
pipeline:
6+
inputs:
7+
- name: node_exporter_metrics
8+
tag: node_metrics
9+
10+
outputs:
11+
- name: prometheus_exporter
12+
match: node_metrics
13+
host: 0.0.0.0
14+
port: 2021

conf/fluent-bit-win32.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
service:
2+
flush: 1
3+
log_level: info
4+
http_server: false
5+
http_listen: 0.0.0.0
6+
http_port: 2020
7+
parsers_file: parsers.yaml
8+
plugins_file: plugins.yaml
9+
10+
pipeline:
11+
inputs:
12+
- name: winlog
13+
channels: 'Setup,Windows PowerShell'
14+
15+
outputs:
16+
- name: stdout
17+
match: '*'

conf/fluent-bit.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
service:
2+
flush: 1
3+
log_level: info
4+
http_server: false
5+
http_listen: 0.0.0.0
6+
http_port: 2020
7+
parsers_file: parsers.yaml
8+
plugins_file: plugins.yaml
9+
10+
pipeline:
11+
inputs:
12+
- name: cpu
13+
tag: cpu.local
14+
15+
outputs:
16+
- name: stdout
17+
match: '*'

conf/parsers.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parsers:
2+
- name: json
3+
format: json
4+
5+
- name: docker
6+
format: json
7+
time_key: time
8+
time_format: "%Y-%m-%dT%H:%M:%S.%L"
9+
time_keep: true

conf/plugins.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
plugins:
2+
# - /other/path/to/out_gstdout.so

cpack/debian/conffiles

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
/etc/fluent-bit/parsers.conf
22
/etc/fluent-bit/plugins.conf
33
/etc/fluent-bit/fluent-bit.conf
4+
/etc/fluent-bit/parsers.yaml
5+
/etc/fluent-bit/plugins.yaml
6+
/etc/fluent-bit/fluent-bit.yaml

cpack/macos/fluent-bit.plist.cmakein

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<array>
1111
<string>@CMAKE_INSTALL_FULL_BINDIR@/@FLB_OUT_NAME@</string>
1212
<string>--config</string>
13-
<string>@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_SYSCONFDIR@/@FLB_OUT_NAME@/@FLB_OUT_NAME@.conf</string>
13+
<string>@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_SYSCONFDIR@/@FLB_OUT_NAME@/@FLB_OUT_NAME@.yaml</string>
1414
</array>
1515
<key>RunAtLoad</key>
1616
<true/>

cpack/wix/WIX.template.in.cmakein

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</SetProperty>
8484

8585
<Property Id="CreateFluentBitWinSvc" Value=" "/>
86-
<CustomAction Id="SetCreateFluentBitWinSvcCommand" Property="CreateFluentBitWinSvc" Value="&quot;sc.exe&quot; create @FLB_OUT_NAME@ binpath= &quot;\&quot;[INSTALL_ROOT]bin\@[email protected]\&quot; -c \&quot;[INSTALL_ROOT]conf\@FLB_OUT_NAME@.conf\&quot;&quot; start= delayed-auto" Execute="immediate" />
86+
<CustomAction Id="SetCreateFluentBitWinSvcCommand" Property="CreateFluentBitWinSvc" Value="&quot;sc.exe&quot; create @FLB_OUT_NAME@ binpath= &quot;\&quot;[INSTALL_ROOT]bin\@[email protected]\&quot; -c \&quot;[INSTALL_ROOT]conf\@FLB_OUT_NAME@.yaml\&quot;&quot; start= delayed-auto" Execute="immediate" />
8787
<CustomAction Id="CreateFluentBitWinSvc" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="ignore" Impersonate="no" />
8888

8989
<Property Id="LaunchFluentBitWinSvc" Value=" "/>

0 commit comments

Comments
 (0)