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

Frontend monitoring + alerts in AWS #1064

Closed
6 of 9 tasks
Tracked by #1177
codemonkey800 opened this issue May 18, 2023 · 5 comments
Closed
6 of 9 tasks
Tracked by #1177

Frontend monitoring + alerts in AWS #1064

codemonkey800 opened this issue May 18, 2023 · 5 comments
Assignees
Labels

Comments

@codemonkey800
Copy link
Collaborator

codemonkey800 commented May 18, 2023

Currently the only monitoring we have for the frontend are container logs for the frontend server on AWS CloudWatch. We should look into expanding how the frontend is monitored so we get deeper insight into how the application is running and so we can get notified via alerts if anything wrong happens on the frontend.

Required

  • Send browser logs to AWS
  • Add alerts for when an error occurs on the server or client

Nice to have

(not planned for upfront work)

  • Track metrics for server container
  • Track web vitals on the browser
  • Create dashboard for displaying:
    • Container health
    • Error count
    • API request info
    • Web vitals
@codemonkey800 codemonkey800 added the P0 Critical Priority label Aug 2, 2023
@codemonkey800 codemonkey800 changed the title Log client side logs to AWS CloudWatch Frontend AWS logs and alerts Aug 2, 2023
@codemonkey800 codemonkey800 changed the title Frontend AWS logs and alerts Frontend monitoring + alerts in AWS Aug 2, 2023
@codemonkey800 codemonkey800 self-assigned this Aug 2, 2023
@richaagarwal richaagarwal removed good first issue P0 Critical Priority labels Aug 11, 2023
@manasaV3
Copy link
Collaborator

manasaV3 commented Aug 30, 2023

Cloudwatch RUM was introduced in aws provider 4.20.0: https://registry.terraform.io/providers/hashicorp/aws/4.20.0/docs/resources/rum_app_monitor

Napari hub's aws provider is currently on 4.18.0. As the dependency for 4.20.0 for aws provider also is terraform 0.13 , we should be able to upgrade the aws provider versioning. Here is the changelog for the version bump: https://github.com/hashicorp/terraform-provider-aws/blob/v4.20.0/CHANGELOG.md

Also, setting up cloudwatch rum has dependency on congnito identity pools for guest access. Linking cognito documentation for terraform here.

@codemonkey800
Copy link
Collaborator Author

codemonkey800 commented Sep 14, 2023

currently working on ongoing errors in prod, alarms have been disabled for now:

image

@codemonkey800 codemonkey800 reopened this Sep 15, 2023
@codemonkey800
Copy link
Collaborator Author

errors seem to be caused by 404 errors, but not sure why people are opening non-existent plugin pages:
image

@richaagarwal
Copy link
Collaborator

Moving this back into the "Pending QA & Release" column - we can close it out once we've enabled the alarms again

@codemonkey800
Copy link
Collaborator Author

alarms have been enabled and reduced with recent code changes, some pending improvements will be captured in #1276

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

No branches or pull requests

3 participants