meilisearch/cloud-providers

[AWS] Add cloudwatch agent to image to allow ssh-less access to logs

rweintraub-cycleon opened this issue · 6 comments

Description
In an usual deployment scenario you might be interested in the log files created by meilisearch. The current AMI does not include the cloudwatch agent & the documentation also does not include instruction on how to set-up the agent. As of now the only way to access those otherwise would be by ssh'ing into the machine which is not always encouraged.

Basic example
AWS provides a documentation that explains how the agent should be installed with valuable notes:
https://docs.aws.amazon.com/prescriptive-guidance/latest/implementing-logging-monitoring-cloudwatch/include-cloudwatch-agent-amis.html

Hi @rweintraub-cycleon,
Thank you for raising this proposal. It would be an interesting addition indeed but it seems to me that the latter is not free? Would it be possible to add it without users having to pay?

Hi @alallema i'm not sure if i'm missing something but from what i can see there should be 5 gb worth of logs in the free-tier of Cloudwatch included. The agent itself should also be free as it's merely pushing the data to cloudwatch.
https://aws.amazon.com/cloudwatch/pricing/

Perfect! This could be a good addition

Cool!
As a note: It would be really nice if the documentation also provides a CDK/Cloudformation example that can be used immediately.
My assumption here is that people who want to use cloudwatch will probably be using IaaC so haveing these examples would be really nice :)

Transfer of this issue to the cloud-provider project due to its depreciation

As we no longer offer as much maintenance on this repo, I don't think this issue is still relevant. I'm closing it