Skip to content

Commit

Permalink
Configurable fluent bit log level and no_proxy settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Feb 14, 2024
1 parent 518868d commit c56e9e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/schema.cue
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ import "path"
host: string | *"127.0.0.1"
port: uint16 | *14014
service: {
log_level: string | *"info"
flush: float | *1
storage_max_chunks_up: uint | *32
storage_backlog_mem_limit: string | *"16M"
Expand Down Expand Up @@ -927,6 +928,7 @@ import "path"

http_proxy?: string
https_proxy?: string
no_proxy?: string

version?: uint16

Expand Down
2 changes: 1 addition & 1 deletion templates/etc/fluent-bit/fluent-bit.yaml.etlua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
service:
log_level: info
log_level: <%- json_encode(config["fluent_bit"]["service"]["log_level"]) %>
# How often to flush inputs to the outputs.
flush: <%- json_encode(config["fluent_bit"]["service"]["flush"]) %>
storage.path: <%- json_encode(path_join(config["db_dir"], "fluent-bit")) %>
Expand Down
3 changes: 3 additions & 0 deletions templates/etc/perp/fluent-bit/rc.env.etlua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<% if config["http_proxy"] then %>
HTTP_PROXY=<%- config["http_proxy"] %>
<% end %>
<% if config["no_proxy"] then %>
NO_PROXY=<%- config["no_proxy"] %>
<% end %>
<% if config["fluent_bit"]["aws_access_key_id"] then %>
AWS_ACCESS_KEY_ID=<%- config["fluent_bit"]["aws_access_key_id"] %>
<% end %>
Expand Down

0 comments on commit c56e9e7

Please sign in to comment.