-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
throw exceptions on HTTPTooManyRequests and HTTPServerError so FluentD will retry #1845
throw exceptions on HTTPTooManyRequests and HTTPServerError so FluentD will retry #1845
Conversation
Not sure why circleCI is failing on a helm chart test, seems unrelated? |
Yeah not your fault, I fixed that on your branch. |
Enabled: true | ||
Style/HashTransformValues: | ||
Enabled: 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.
Can you add a newline at the end please ?
fluentd/fluent-plugin-grafana-loki/spec/gems/fluent/plugin/loki_output_spec.rb
Outdated
Show resolved
Hide resolved
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 with one question.
…i_output_spec.rb spelling fix Co-Authored-By: Cyril Tovena <cyril.tovena@gmail.com>
…/loki into explicit_exceptions_for_retry
Forgot about bumping the gem version can you send a PR and I’ll deploy it. |
…D will retry (#1845) * throw exceptions on HTTPTooManyRequests and HTTPServerError to trigger retry * fixed variable naming * Update fluentd/fluent-plugin-grafana-loki/spec/gems/fluent/plugin/loki_output_spec.rb spelling fix Co-Authored-By: Cyril Tovena <cyril.tovena@gmail.com> * removed newline Co-authored-by: Cyril Tovena <cyril.tovena@gmail.com> (cherry picked from commit 7413f11) Signed-off-by: Edward Welch <edward.welch@grafana.com>
What this PR does / why we need it:
Align retry behaviour with promtail. Trigger an explicit exception for HTTPTooManyRequests (429) and HTTPServerError (5xx) in the Output#write, so fluentD can retry as specified here https://docs.fluentd.org/output#control-retrying.
Checklist