Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Can I send email inside monitor script (script browser) according to some condition?


#1

Hi,
Can I send email inside monitor script (script browser) according to some condition? If yes, do I need to include a specific package?

Thanks,
Sheryl


#2

Hey @sheryl.xu I would imagine this is possible using the nodemailer package - which I don’t believe is supported in Public Synthetics Locations. https://www.w3schools.com/nodejs/nodejs_email.asp

Though, you can work with custom Node modules in the Containerised Private Minion: https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/private-locations/containerized-private-minion-cpm-configuration


#3

Hi Ryan,

Thanks for the info! Is there a way that I can set up my local machine to try this?

Thanks,
Sheryl


#4

Hey @sheryl.xu - Private Locations require a separate subscription on top of just regular Synthetics Pro - so you may need to reach out to your Account Rep for a trial of that.

If you have a private locations subscription already - yes you can set this up on your local machine. The Containerised Private Minion (CPM) runs in Docker - so once you have Docker installed you should be good to go :smiley:

Here’s the installation docs: https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/private-locations/install-containerized-private-minions-cpms