Skip to content

Commit

Permalink
[aws-for-fluent-bit] Add log_retention_days to CloudWatch plugin (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeypash committed Jan 8, 2021
1 parent e69602c commit a586732
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/aws-for-fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: aws-for-fluent-bit
description: A Helm chart to deploy aws-for-fluent-bit project
version: 0.1.5
version: 0.1.6
appVersion: 2.7.0
home: https://github.com/aws/eks-charts
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
Expand Down
1 change: 1 addition & 0 deletions stable/aws-for-fluent-bit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ helm delete aws-for-fluent-bit --namespace kube-system
| `cloudWatch.logStreamName` | The name of the CloudWatch Log Stream that you want log records sent to. | |
| `cloudWatch.logStreamPrefix` | Prefix for the Log Stream name. The tag is appended to the prefix to construct the full log stream name. Not compatible with the log_stream_name option. | `"fluentbit-"` |
| `cloudWatch.logKey` | By default, the whole log record will be sent to CloudWatch. If you specify a key name with this option, then only the value of that key will be sent to CloudWatch. For example, if you are using the Fluentd Docker log driver, you can specify logKey log and only the log message will be sent to CloudWatch. | |
| `cloudWatch.logRetentionDays` | If set to a number greater than zero, and newly create log group's retention policy is set to this many days. | |
| `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 |
Expand Down
3 changes: 3 additions & 0 deletions stable/aws-for-fluent-bit/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ data:
{{- if .Values.cloudWatch.logFormat }}
log_format {{ .Values.cloudWatch.logFormat }}
{{- end }}
{{- if .Values.cloudWatch.logRetentionDays }}
log_retention_days {{ .Values.cloudWatch.logRetentionDays }}
{{- end }}
{{- if .Values.cloudWatch.roleArn }}
role_arn {{ .Values.cloudWatch.roleArn }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions stable/aws-for-fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ cloudWatch:
logStreamPrefix: "fluentbit-"
logKey:
logFormat:
logRetentionDays:
roleArn:
autoCreateGroup: true
endpoint:
Expand Down

0 comments on commit a586732

Please sign in to comment.