mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
Support Fluentbit to CloudWatch logs (#140)
* Import and customize fluenbit add-on * Enable fluent bit logs * Bump helm addon version * Dropping account id as it seems to create scraping errors * Create separate log groups per namespace * Apply pre-commit * Remove conflicting global label * Add config object for logs * Enable logs in examples * Add logs docs * Fix broken link * Add screenshots * Update docs * Typos
This commit is contained in:
@@ -247,3 +247,21 @@ variable "nginx_config" {
|
||||
prometheus_metrics_endpoint = "metrics"
|
||||
}
|
||||
}
|
||||
|
||||
variable "enable_logs" {
|
||||
description = "Using AWS For FluentBit to collect cluster and application logs to Amazon CloudWatch"
|
||||
type = bool
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "logs_config" {
|
||||
description = "Configuration object for logs collection"
|
||||
type = object({
|
||||
cw_log_retention_days = number
|
||||
})
|
||||
|
||||
default = {
|
||||
# Valid values are [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653]
|
||||
cw_log_retention_days = 90
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user