Skip to content

Commit f29113f

Browse files
authored
Fluentbit improvements (#189)
* Bump chart version * Take only log message * Add multiline parsing * Add variable config for refresh interval
1 parent 08b4be1 commit f29113f

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

modules/eks-monitoring/add-ons/aws-for-fluentbit/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ See this [Helm Chart](https://github.com/aws/eks-charts/tree/master/stable/aws-f
4242
| <a name="input_helm_config"></a> [helm\_config](#input\_helm\_config) | Helm provider config aws\_for\_fluent\_bit. | `any` | `{}` | no |
4343
| <a name="input_irsa_policies"></a> [irsa\_policies](#input\_irsa\_policies) | Additional IAM policies for a IAM role for service accounts | `list(string)` | `[]` | no |
4444
| <a name="input_manage_via_gitops"></a> [manage\_via\_gitops](#input\_manage\_via\_gitops) | Determines if the add-on should be managed via GitOps. | `bool` | `false` | no |
45+
| <a name="input_refresh_interval"></a> [refresh\_interval](#input\_refresh\_interval) | FluentBit input refresh interval | `number` | `60` | no |
4546

4647
## Outputs
4748

modules/eks-monitoring/add-ons/aws-for-fluentbit/locals.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ locals {
1818
name = local.name
1919
chart = local.name
2020
repository = "https://aws.github.io/eks-charts"
21-
version = "0.1.24"
21+
version = "0.1.27"
2222
namespace = local.name
2323
values = local.default_helm_values
2424
description = "aws-for-fluentbit Helm Chart deployment configuration"
@@ -33,6 +33,7 @@ locals {
3333
aws_region = var.addon_context.aws_region_name
3434
cluster_name = var.addon_context.eks_cluster_id
3535
log_retention_days = var.cw_log_retention_days
36+
refresh_interval = var.refresh_interval
3637
service_account = local.service_account
3738
})]
3839

modules/eks-monitoring/add-ons/aws-for-fluentbit/values.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,19 @@ cloudWatchLogs:
1212
logGroupName: /aws/eks/observability-accelerator/workloads
1313
logGroupTemplate: /aws/eks/observability-accelerator/${cluster_name}/$kubernetes['namespace_name']
1414
logStreamTemplate: $kubernetes['container_name'].$kubernetes['pod_name']
15-
log_key: log
15+
logKey: log
1616
logRetentionDays: ${log_retention_days}
17+
18+
input:
19+
enabled: false
20+
21+
additionalInputs: |
22+
[INPUT]
23+
Name tail
24+
Tag kube.*
25+
Path /var/log/containers/*.log
26+
DB /var/log/flb_kube.db
27+
Mem_Buf_Limit 5MB
28+
Skip_Long_Lines On
29+
Refresh_Interval ${refresh_interval}
30+
multiline.parser cri, docker, go, java, python

modules/eks-monitoring/add-ons/aws-for-fluentbit/variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ variable "cw_log_retention_days" {
1010
default = 90
1111
}
1212

13+
variable "refresh_interval" {
14+
description = "FluentBit input refresh interval"
15+
type = number
16+
default = 60
17+
}
18+
19+
1320
variable "manage_via_gitops" {
1421
type = bool
1522
description = "Determines if the add-on should be managed via GitOps."

0 commit comments

Comments
 (0)