aws-solutions/serverless-image-handler

How to turn off monitoring ?

smknstd opened this issue · 3 comments

Hello,

Looking at the doc, I can't find how to turn off monitoring completely. I'd like to turn off cloudwatch + X-ray.

When I get to the the lambda function settings ("monitoring tools" section) I found:

Screenshot 2023-11-02 at 09-17-42 Edit monitoring tools (ServerlessImageHandler-BackEndImageHandlerLambdaFu-0cBpL8rsKogs) - Lambda

Thanx for your help.

Hi @smknstd

You can try following the answer in this stackoverflow question to prevent the function from creating logs.

Let me know if you have any issues,
Simon

Thanx for your answer. Will try the workaround even if it seems brutal though (ideally I'd like to keep logging errors I guess).

In the mean time it seems I managed to switch off some logging set up by default from the api gateway:

Screenshot 2023-11-10 at 09-42-36 API Gateway - Stages

Screenshot 2023-11-09 at 14-26-07 API Gateway - Stages

it seems those stopped immediately:

Screenshot 2023-11-10 at 09-40-07 CloudWatch eu-central-1

Also I'm pretty sure we started to see some cloudwatch stuff on our aws bills when we switched serverless-image-handler from v5 to v6.