-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat: parameterise the MaximumEventAgeInSeconds, LogGroupName, and IAMRoleName for lambda-promtail CloudFormation template #12728
feat: parameterise the MaximumEventAgeInSeconds, LogGroupName, and IAMRoleName for lambda-promtail CloudFormation template #12728
Conversation
0b94c3e
to
c874998
Compare
MaximumEventAgeInSeconds
for lambda promtail CFN
I'll try to use this locally and share the results in the description once I have it. |
This seems like a reasonable argument to the template, please ping me after you've tried it out 👍 |
hey @InsomniaCoder lambda-promtail itself is best effort maintained currently, and the terraform and cloudformation files were always meant to be examples more than official "use exactly this to deploy" files, but I think both of your changes are still simple enough that we can merge them |
@cstyan noted! from my side with these two PRs and probably a parameterized of the IAM role's name then it should be able to be used directly from my side. but anyways, as you see fit. if you think they are beneficial to be merged, let me know if you need anything else 😄 |
@InsomniaCoder can you please include all the portions you want to parameterize in this PR 👍 |
c8dabbf
to
42d3e4a
Compare
@cstyan combined all the changes. thank you |
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.
one last comment
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.
@InsomniaCoder thanks for your patience 👍
thanks!! |
…MRoleName for lambda-promtail CloudFormation template (#12728)
What this PR does / why we need it:
Which issue(s) this PR fixes:
It adds the parameter for specifying
MaximumEventAgeInSeconds
for the lambda-promtail's EventInvokeConfig template.Why do we need this?
Without specifying this, the default value is
21600
which is 6 hours. We have been facing a problem where our lambda-promtail gets throttled and cannot process cloudwatch logs fast enough.This has an effect as the more throttled it is, the more delay the event got processed, and eventually the old messages will be too old for Loki, causing even more failure to the Lambda processing
Once we got to this point, the only way to mitigate this is to discard the old events, and the only way to do it is to change the
MaximumEventAgeInSeconds
As the current template does not allow this, we are making this PR so we can benefit from upstream fix.
Test
Using this version of the
lambda-promtail.yaml
and put 100 seconds asMaximumEventAgeInSeconds
Checking the configuration of the new version, it's updated as it should
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)docs/sources/setup/upgrade/_index.md
production/helm/loki/Chart.yaml
and updateproduction/helm/loki/CHANGELOG.md
andproduction/helm/loki/README.md
. Example PRdeprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR