CloudWatch Agent Dockerfile and K8s YAML templates for CloudWatch Container Insights.
162
stars
106
forks
source link
Installed Fluent Bit using fluent-bit-compatible.yaml, container logs are not parsed correctly when container runtime is containerd #139
Open
hiraken-w opened 1 year ago
The following AWS documentation guides us on how to install using fluent-bit-compatible.yaml.
Set up Fluent Bit as a DaemonSet to send logs to CloudWatch Logs - Amazon CloudWatch
However, currently only docker is specified in the fluent-bit-compatible.yaml parser, and cri is not specified.
https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/5215e6d9cfe4a4922ceb691ea7e03d5dc3b40712/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/fluent-bit/fluent-bit-compatible.yaml#L99
I think it needs to be fixed in the same way fluent-bit.yaml
https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/5215e6d9cfe4a4922ceb691ea7e03d5dc3b40712/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/fluent-bit/fluent-bit.yaml#L71