Skip to content
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

Add support for configuring tags included with auto created log groups #778

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

choppedpork
Copy link

Issue

n/a

Description of changes

I've added the ability to set the new_log_group_tags option value for Fluent Bit Plugin for CloudWatch Logs. I'm currently starting work on migrating away from the FluentD CloudWatch implementation and this is the only bit of functionality I'm missing - it's already supported by the plugin itself, just not the chart.

Checklist

  • Added/modified documentation as required (such as the README.md for modified charts)
  • Incremented the chart version in Chart.yaml for the modified chart(s)
  • Manually tested. Describe what testing was done in the testing section below
  • Make sure the title of the PR is a good description that can go into the release notes

Testing

I've tested this change by deploying the helm chart to a test cluster, verifying the Fluent Bit logs and checking the tags on log groups in CloudWatch. Note that contrary to the README of the plugin itself I had to skip the double quotes as otherwise I was getting the following error back from the API:

Member must have length less than or equal to 128, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+)$

My test tag set didn't not include spaces however I've ran an additional test with spaces in the tag value and it's all worked great!

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -56,6 +56,7 @@ helm delete aws-for-fluent-bit --namespace kube-system
| `cloudWatch.logFormat` | An optional parameter that can be used to tell CloudWatch the format of the data. A value of json/emf enables CloudWatch to extract custom metrics embedded in a JSON payload. See the Embedded Metric Format. | |
| `cloudWatch.roleArn` | ARN of an IAM role to assume (for cross account access). | |
| `cloudWatch.autoCreateGroup` | Automatically create the log group. Valid values are "true" or "false" (case insensitive). | true |
| `cloudWatch.newLogGroupTags` | Tags to include with auto created log groups. Map of key/value pairs. | {} |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you edit this slightly to make it even more clear- what you have right now is good, but let's say explicitly it only works if you set auto_create_group true and the log group did not already exist.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - that's now done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants