Skip to content

Install Newrelic APM and/or browser monitoring #285

Closed

Description

@danrademacher

For intermittent and vexing browser issues like #277, we'd like to take advantage of New Relic's browser monitoring features, which will log errors that any user sees so we can get a sense of how widespread that issue is and maybe see more patterns.

There are two ways we can install this:

  1. the recommended route is to install the NewRelic "APM" service on Kubernetes via Helm. There's a walkthrough wizard here, but I'd want @Rub21 / DevSeed to do that since it touches Kubernetes and Helm. If we install that, then we can use the NewRelic agent to enable browser console monitoring on the website plus maybe Task Manager. They say it will auto-add the snippet to all pages. Not sure how it knows all possible URL routes, but worth a shot if we can do it!
  2. If for some reason we shouldn't go that route, we can also manually insert a JS snippet in the website code, which I could handle with @gregallensworth, but the downside to this approach is we need to ensure it gets inserted on all pages and apps, we have to manually update the agent if NR has updates, and we'd have code changes in our repo that are just for this tracking.

Activity

  1. Rub21 commented on Sep 10, 2021

    @Rub21
    Member

    @danrademacher , I have added the New Relic APM configuration for the web container, it needed to add Ruby configuration in the ohm-website code, in order to collect data. e.g 👇

    image

    image

    https://one.newrelic.com/launcher/nr1-core.explorer

  2. danrademacher commented on Sep 10, 2021

    @danrademacher
    Author

    Great! I see that PR as well. I need to look more closely at the browser monitoring to see if there's anything else we need to do there to enable. Maybe you did it already?

    And I assumed we would need to merge and deploy this PR OpenHistoricalMap/ohm-deploy#87 into staging at least to see metrics for staging, but you have screenshots of it working. Interesting!

    I'll look closer at the PR and should be able to merge shortly, so we can be sure this is all working on Staging

  3. danrademacher commented on Sep 11, 2021

    @danrademacher
    Author

    I deployed, then used +Add Data in New Relic to add staging as a browser data source:
    image

    Seems like it should appear here

    image

    Maybe it takes a while

  4. danrademacher commented on Sep 13, 2021

    @danrademacher
    Author

    I see we are now getting info on Staging in browser stats:
    image

  5. danrademacher commented on Sep 13, 2021

    @danrademacher
    Author

    and now on production:
    image

  6. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions