aws / amazon-cloudwatch-agent

CloudWatch Agent enables you to collect and export host-level metrics and logs on instances running Linux or Windows server.
MIT License
451 stars 205 forks source link

Health endpoint #541

Open jyotimahapatra opened 2 years ago

jyotimahapatra commented 2 years ago

My team runs cloudwatch agent as a container to collect metrics. Does cw agent have a healthz or livez endpoint I could use to setup probes for the daemonset https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/master/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-daemonset.yaml ?

github-actions[bot] commented 2 years ago

This issue was marked stale due to lack of activity.

github-actions[bot] commented 1 year ago

Closing this because it has stalled. Feel free to reopen if this issue is still relevant, or to ping the collaborator who labeled it stalled if you have any questions.

StevePotter commented 1 year ago

+1 on this

visonliamazon commented 1 year ago

+1

SaxyPandaBear commented 1 year ago

Reopening this since I think it's something worth considering. I don't think it's work we have planned any time soon though

khavishbhundoo commented 1 year ago

+1

adam-mateen commented 1 year ago

Thank you for the feature request. We will review it and get back to you.

brenlong83 commented 3 months ago

@adam-mateen how did the review go? 🤔

rchanbg commented 2 months ago

As a workaround when running the official image from ECR/Docker Hub on ECS Fargate, since it uses an scratch image, most health check tools are not included (curl for example). Instead I just used the following command just to mark the container as healthy:

HealthCheck:
  Command: ["CMD", "/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent", "--version"]