Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert when mountpoint-s3 mounted and unmounted #994

Open
nguyenminhdungpg opened this issue Aug 28, 2024 · 1 comment
Open

Alert when mountpoint-s3 mounted and unmounted #994

nguyenminhdungpg opened this issue Aug 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nguyenminhdungpg
Copy link

Tell us more about this new feature.

I have a high traffic system that would like to use mountpoint-s3 for mounting a bucket that contains a lot of files and they are read access very frequently.
In case of mountpoint-s3 is unmounted by accident, It might make a very big impact to our high traffic system. So I plan some alerts for mounted and unmounted events. I can do it using CloudWatch metric filter and Alarm when a log entry like "INFO fuser::session: Unmounted" occurs in mountpoint-s3 log files. The problem is without debug log, no log with level under WARN is written into log files. If I turn debug log on, there are ton of logs on my EC2 instance sent to CloudWatch and cost very high.

If log entry for mounted and unmounted comes with WARN level, it will solve my problem.

Can you suggest a solution for this?

@nguyenminhdungpg nguyenminhdungpg added the enhancement New feature or request label Aug 28, 2024
@awslabs awslabs deleted a comment from Superstar-IT Aug 28, 2024
@awslabs awslabs deleted a comment Aug 28, 2024
@awslabs awslabs deleted a comment Aug 28, 2024
@passaro
Copy link
Contributor

passaro commented Sep 2, 2024

It may be useful to look at this section of the docs: Advanced logging verbosity options. By using the environment variable documented there, you should be able to configure logging in more detail than with the --debug flag.
For example, would something like this suit your needs?

MOUNTPOINT_LOG="info,awscrt=off"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@passaro @nguyenminhdungpg and others