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

how to enable AWS Cloudwatch Lambda Insights? #46

Open
romk1n opened this issue Jun 26, 2024 · 6 comments
Open

how to enable AWS Cloudwatch Lambda Insights? #46

romk1n opened this issue Jun 26, 2024 · 6 comments

Comments

@romk1n
Copy link

romk1n commented Jun 26, 2024

Hi,
When we deployed the the lambda edge we can't see any monitoring, trying to change configuration in place we getting an error: Role trusts too many services, expected only 1.

I guess there must be some configuration in deploy which would switch on?

maybe envrionment is required, but we not sure how to correctly set it up using this project.

environment:
      AWS_LAMBDA_EXEC_WRAPPER

Thanks.

@jotto
Copy link
Collaborator

jotto commented Jun 26, 2024

I don't think the environment section is needed, but I wonder if the "edgelambda.amazonaws.com" in the role is no longer needed:

- edgelambda.amazonaws.com

can you try recreating (or modifying the trust policy) so it only has access to 1 service "lambda.amazonaws.com" instead of both "edgelambda.amazonaws.com" and "lambda.amazonaws.com"?

@romk1n
Copy link
Author

romk1n commented Jun 26, 2024

will try thanks, it's interesting that's it is off by default, so i was wondering if there was specific reason.

@jotto
Copy link
Collaborator

jotto commented Jun 26, 2024

let me know what you find or if you have any more info about the "Role trusts too many services, expected only 1." error

@romk1n
Copy link
Author

romk1n commented Jun 26, 2024

@jotto the issue is that we cannot see any monitoring because when we deploy the function Insights are disabled, we can see logs though and we can see it's working. So that's the main question if you know how to enable monitoring?

Screenshot 2024-06-26 at 18 51 12

and without monitoring we don't get any cloudwatch stats all dashboard are empty and traces as well

Screenshot 2024-06-26 at 18 52 44 Screenshot 2024-06-26 at 18 52 03

@jotto
Copy link
Collaborator

jotto commented Jun 26, 2024

those basic cloudwatch metrics should be working by default... can you try changing the date range from 1w to 1hr to ensure it's not hiding the most recent data?

also email me [email protected] with your account email so i can double check that the requests are being made

@romk1n
Copy link
Author

romk1n commented Jul 9, 2024

We will send en email, as we trying to debug blocklist functionality. What's really weird if we do test manually we can see invocations and logs. but when it's executed from cloudfront no invocations are shown in lambda monitoring, however cloudfront does show stats that function is called, it's a bit all bizzare, we also know 100% that it's working.

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

No branches or pull requests

2 participants