aws-samples / aws-samples/amazon-ecs-firelens-examples

FireLens health check recommendation

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
335
Forks
99
PR merge metrics
No merged PRs in 30d

Description

As mentioned in https://github.com/aws-samples/amazon-ecs-firelens-examples/tree/mainline/examples/fluent-bit/health-check, TCP Input Health Check is not recommended anymore. And we don't want our ECS tasks to tightly depend on CloudWatch. And we want to minimize the chance to lose logs. Therefore, the only option left is Simple Uptime Health Check.

However, as you suggested, "It is a very shallow health check, Fluent Bit could be completely failing to send logs but as long as its still responsive on the monitoring interface, it will be marked as healthy."

Do you have a recommended way to monitor if the Fluent Bit is actually failing? We're ok to miss logs sporadically, but we want to monitor that and do not want to miss logs for a long time.

Several of my thoughts are:
1. Can we use the Simple Uptime Health Check for container health check command in ECS, but in the same time, can we set up another container to call the deep health check command in Fluent Bit? Then if it cannot respond, the additional container emits a metric?
2. Can we monitor the CloudWatch logs size and use that to decide if we're losing logs?
3. Or do you have any recommendation to monitor in case the Simple Uptime Health Check isn't able to tell that the Fluent Bit cannot send logs?

Contributor guide

Open the contributing guide

Research direction

Start with the examples/fluent-bit/health-check content linked in the issue and review how Simple Uptime and the other health-check approaches relate to ECS and CloudWatch. Compare the proposed monitoring options and determine whether the repository can provide a concrete recommendation. Done means the supported approach and its limitations are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.