Skip to content

Commit

Permalink
Add variable config for refresh interval
Browse files Browse the repository at this point in the history
  • Loading branch information
bonclay7 committed Jul 13, 2023
1 parent cfa93c3 commit a86be02
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/eks-monitoring/add-ons/aws-for-fluentbit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ See this [Helm Chart](https://github.com/aws/eks-charts/tree/master/stable/aws-f
| <a name="input_helm_config"></a> [helm\_config](#input\_helm\_config) | Helm provider config aws\_for\_fluent\_bit. | `any` | `{}` | no |
| <a name="input_irsa_policies"></a> [irsa\_policies](#input\_irsa\_policies) | Additional IAM policies for a IAM role for service accounts | `list(string)` | `[]` | no |
| <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 |
| <a name="input_refresh_interval"></a> [refresh\_interval](#input\_refresh\_interval) | FluentBit input refresh interval | `number` | `60` | no |

## Outputs

Expand Down
1 change: 1 addition & 0 deletions modules/eks-monitoring/add-ons/aws-for-fluentbit/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ locals {
aws_region = var.addon_context.aws_region_name
cluster_name = var.addon_context.eks_cluster_id
log_retention_days = var.cw_log_retention_days
refresh_interval = var.refresh_interval
service_account = local.service_account
})]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ additionalInputs: |
DB /var/log/flb_kube.db
Mem_Buf_Limit 5MB
Skip_Long_Lines On
Refresh_Interval 10
Refresh_Interval ${refresh_interval}
multiline.parser cri, docker, go, java, python
7 changes: 7 additions & 0 deletions modules/eks-monitoring/add-ons/aws-for-fluentbit/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ variable "cw_log_retention_days" {
default = 90
}

variable "refresh_interval" {
description = "FluentBit input refresh interval"
type = number
default = 60
}


variable "manage_via_gitops" {
type = bool
description = "Determines if the add-on should be managed via GitOps."
Expand Down

0 comments on commit a86be02

Please sign in to comment.