-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrating fluent-bit input plugins for Linux/Windows (#1144)
* Implement input plugin setup + perf and containerinventory plugins (#1112) * migrate perf and containterinventory plugins --------- Co-authored-by: Amol Agrawal <[email protected]> * add var to livenessprobe (#1116) Co-authored-by: Amol Agrawal <[email protected]> * Add perf and container inventory plugins for Windows and integrating them to named pipe (#1113) Add perf and container inventory plugins for Windows and integrating them to named pipe (#1113) * Resolving comments * Solving a bug * Using the new input plugins only for windows msi mode * Remove the duplicate flow of logs * Not update the config files when legacy and resource optimization is on * Not updating the config map for geneva as well * Solving timestamp bug and add windows_rs.conf files * Var name change bug * Use the stat of a file instead of reading from file * address PR comments - I * update fluent-bit to 2.1.10 * update trivyignore * fix bug in confg parsing * add shared library * revert fluent-bit upgrade in windows * Adding a configmap option for disabling windows fluent-bit * Adding a configmap option for disabling windows fluent-bit * Solving a bug * Resolving comments * Solving RS bug * Solving a bug * Resolving comments * remove linux option from cm * Update trivyignore * Sign the containerinventory.so and perf.so files * Signing windows binary files * Update the go mod tidy for the ci_prod changes * Update go.mod to 1.21 * bug * Update fluent-bit conf * Update the fluent-bit conf file * fluentd starting two times --------- Co-authored-by: Amol Agrawal <[email protected]> Co-authored-by: Amol Agrawal <[email protected]> Co-authored-by: Janvi Jatakia (from Dev Box) <[email protected]>
- Loading branch information
1 parent
59391b4
commit 063d35c
Showing
57 changed files
with
14,406 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,6 @@ source/plugins/go/src/*.h | |
*_mock.go | ||
*_log.txt | ||
*.log | ||
*.byebug_history | ||
*.byebug_history | ||
go.work.sum | ||
go.work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
build/common/installer/conf/azm-containers-input-plugins.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[PLUGINS] | ||
Path /opt/fluent-bit/bin/containerinventory.so | ||
|
||
[PLUGINS] | ||
Path /opt/fluent-bit/bin/perf.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[INPUT] | ||
Name containerinventory | ||
Tag oneagent.containerInsights.CONTAINER_INVENTORY_BLOB | ||
run_interval 60 | ||
|
||
[INPUT] | ||
Name perf | ||
Tag oneagent.containerInsights.LINUX_PERF_BLOB | ||
run_interval 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
build/linux/installer/conf/windows_rs_containerinventory.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#containerinventory for windows containers | ||
<match **CONTAINER_INVENTORY_BLOB**> | ||
@type forward | ||
@id out_ci_fwd | ||
@log_level debug | ||
send_timeout 30 | ||
connect_timeout 30 | ||
heartbeat_type none | ||
<server> | ||
host 0.0.0.0 | ||
port "#{ENV['MDSD_FLUENT_SOCKET_PORT']}" | ||
</server> | ||
<buffer> | ||
@type file | ||
overflow_action drop_oldest_chunk | ||
chunk_limit_size 4m | ||
queue_limit_length "#{ENV['FLUENTD_QUEUE_LIMIT_LENGTH']}" | ||
flush_interval "#{ENV['FLUENTD_FLUSH_INTERVAL']}" | ||
retry_max_times 10 | ||
retry_wait 5s | ||
retry_max_interval 5m | ||
flush_thread_count 5 | ||
</buffer> | ||
keepalive true | ||
</match> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#cadvisor perf- Windows nodes | ||
<source> | ||
@type win_cadvisor_perf | ||
tag oneagent.containerInsights.LINUX_PERF_BLOB | ||
run_interval 60 | ||
@log_level debug | ||
</source> |
Oops, something went wrong.