New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameterize buffer settings for Fluentd Logs/Metrics #99
Parameterize buffer settings for Fluentd Logs/Metrics #99
Conversation
add_timestamp "#{ENV['ADD_TIMESTAMP']}" | ||
timestamp_key "#{ENV['TIMESTAMP_KEY']}" | ||
proxy_uri "#{ENV['PROXY_URI']}" | ||
@include buffer.output.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice one. Can we also do some similar abstraction for other configurations? e.g.
data_type metrics
metric_data_format prometheus
disable_cookies true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure I can DRY this up more. It's too bad fluentd only supports include
and not macro templates that we could parameterize.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, can you approve again ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks
@@ -43,7 +43,9 @@ RUN gem sources --clear-all \ | |||
# Default settings for log collection | |||
ENV LOG_FORMAT "fields" | |||
ENV FLUSH_INTERVAL "5s" | |||
ENV NUM_THREADS "1" | |||
ENV NUM_THREADS "4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean every plugin will have 4 threads? Does it harm if we set it to an even higher value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it does. I picked 4 because that's what the collector uses. I recommend we try it for a while, work on instrumenting some metrics so we can see queue size, and only increase it once we can observe the effects.
* Instructions for using the adutil * Update security team's filter (SumoLogic#99) * PUBP-8182: provision elections collector (SumoLogic#98) * PUBP-8182: provision elections collector * PUBP-8182: provision elections collector * PUBP-8182: renaming module to match repo name * PUBP-8182: renaming output Co-authored-by: Malcolm Jones <17786500+mlclmj@users.noreply.github.com> * Add logging for AD parameters (SumoLogic#95) * Log the vars subitted * fix wording, enumerate commands directly * drone sign Co-authored-by: Marcin Suterski <msuterski@users.noreply.github.com> * added collector for nytm/dv-drone in TF (SumoLogic#100) * Adding collector for spg-inyt-subscription-api (SumoLogic#101) * remove 'manageIndexes' from samizdat role (SumoLogic#102) * Add ADR regarding AD groups and nesting (SumoLogic#12) * adr 7 * Update and rename 0007-controlling-role-access-through-ad.md to 0008-controlling-role-access-through-ad.md * Feature/add collector int fallback role (SumoLogic#104) * adding new collector to the role * adding new collector to the role * Adutil instructions moved to dv-docs * update link Co-authored-by: Marcin Suterski <msuterski@users.noreply.github.com> Co-authored-by: Shreelekha Tanna <shree.tanna@nytimes.com> Co-authored-by: Malcolm Jones <17786500+mlclmj@users.noreply.github.com> Co-authored-by: Prune Sebastien THOMAS <prune@lecentre.net> Co-authored-by: satyabodharao <47533173+satyabodharao@users.noreply.github.com> Co-authored-by: Shawn Bower <shawn.bower@gmail.com>
gzip
compression for fluentd to use internally when buffering to maximize amount of buffering we can doTested bringing up Fluentd pods and ensured log and metric collection is working.