self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

How we can push the sentry application logs to Cloud Watch & change the default volume location to EFS

Open praseeb opened this issue 3 years ago • 6 comments

Self-Hosted Version

22.5.0

CPU Architecture

x86_64

Docker Version

20.10.7

Docker Compose Version

1.29.0

Steps to Reproduce

We are using Sentry self-host with docker-compose approach, we would like push our logs to cloud watch instead of storing in the ec2 standalone machine.

Also, currently all the containers are storing their volumes in EC2 root volume, we would like to change that to EFS location.

How we can achieve this, Any suggestion on this approach ? Currently we are using sentry 22.5.0 version.

Expected Result

Sentry application Logs need to be pushed to CloudWatch & need to change the default Volume location to EFS

Actual Result

Currently Sentry application logs are stored in the ec2 instance itself Also about Volumes, its using the default location of docker to store the sentry volumes.

praseeb avatar Jul 13 '22 15:07 praseeb

@chadwhitacre

praseeb avatar Jul 13 '22 16:07 praseeb

Hi,

I believe the best option to configure the docker daemon to put logs in CloudWatch https://docs.docker.com/config/containers/logging/awslogs/

You can also set the root point of storage for volumes using this method which should enable you to store the volumes on EFS.

emmatyping avatar Jul 13 '22 17:07 emmatyping

@ethanhs Thanks for the suggestions.

If we changing the root volume to EFS, which all volumes we need to migrate carefully and important?

@chadwhitacre

praseeb avatar Jul 14 '22 17:07 praseeb

The volumes that persist are here: https://github.com/getsentry/self-hosted/blob/eb4d70995bbbfaee4524b8f43cdbfd00e44d008d/docker-compose.yml#L375

emmatyping avatar Jul 14 '22 17:07 emmatyping

@ethanhs okay thanks for the quick update, will check and update if there are any issue while performing these changes.

praseeb avatar Jul 14 '22 17:07 praseeb

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Aug 05 '22 00:08 github-actions[bot]