aws-observability / helm-charts

The AWS Observability Helm Charts repository contains Helm charts to provide easy mechanisms to setup the CloudWatch Agent and other collection agents to collect telemetry data such as metrics, logs and traces to send to AWS monitoring services.
Apache License 2.0
10 stars 17 forks source link

Is it possible to change the retention settings for /aws/containerinsights/cluster-X/performance log groups #111

Open rubber-ant opened 1 month ago

rubber-ant commented 1 month ago

version: v2.1.1-eksbuild.1 add-on for eks: amazon-cloudwatch-observability

Is it possible to change the retention setting for performance logs using the add-on's configuration values?

I was able to change the retention for application, dataplane, and host logs using log_retention_days, for example - application logs:

containerLogs:
  fluentBit:
    config:
      extraFiles:
        application-log.conf:
          [OUTPUT]
            Name cloudwatch_logs
            Match   application.*
            region $${AWS_REGION}
            log_group_name /aws/containerinsights/$${CLUSTER_NAME}/application
            log_stream_prefix $${HOST_NAME}-
            auto_create_group true
            log_retention_days 90
            extra_user_agent container-insights