04/15/2021 | News release | Distributed by Public on 04/16/2021 11:52
Imagine it's late Sunday evening and you're sitting at your Red Bull-strewn desk. After days of troubleshooting your deployment, you're elated because your team has just pushed a major update to your e-commerce website a day before the company's big sale. But soon worry starts to creep in. What if your update broke a critical workflow and customers can't make purchases? How can you know for sure every use case was covered by testing? Not every broken process registers as an error, so you might not learn about an issue until a customer complains. Here's where synthetic monitoring comes in.
Synthetic monitorsare vital to ensuring your website is working properly with minimal impact on customers. These monitors continually test business-critical processes and proactively alert you when they're broken. If IT downtime costs a company thousands of dollarsper minute, imagine the cost of having an e-commerce site that's running, but on which no one can make a purchase because the checkout button is missing.
However, as useful as synthetic monitors are, they can be tedious to set up. That's why the New Relic team invested a lot of effort to make the synthetic experience as easy to set up and deploy as possible.
These updates to synthetic monitoringhelp you set up and deploy monitors quickly:
The next sections go into detail about these updates. If you are eager to set up your first step monitor, jump right to the 'How to set up your first step monitor'section.
The step monitorprovides a no-code way to set up synthetic monitors. You simply add 'steps' and enter the actions you want the monitor to perform. You can verify that specific text or elements (like buttons and images) are on the page, verify functionality by clicking on elements, and even log in to a site by entering text.
Not sure where to start? Check out our Quickstarts Synthetic Monitoring libraryfor commonly used monitors to get you started faster. This constantly expanding list is community-driven and includes scripts that help you authenticate against Azure, get a Google Lighthouse Audit report, and more.
Synthetics are now integrated with Lookout to provide a quick view into how your websites are performing and whether there are any critical errors. See all of your synthetic monitors in a single view with highlights indicating which monitors are finding abnormal performance changes and where to focus your attention.
In addition to launching the new step monitor, we also updated the experience. If you're still seeing the previous experience, you might need to select Show new view. The following example showsthe previous experience for creating monitors, but you can select Show new viewto see the new, streamlined view:
Note that you can only create step monitors in the new view, so make sure you have Show new viewselected.
The new view separates the different monitor types into cards and guides you through the setup process, depending on the monitor you select:
Follow this step-by-step guide to set up a step monitor for your website.
1. Select the Synthetics tab and click Create monitorin the top right corner:
2. Make sure Show new viewis selected. Then select the User step executionoption (also called a step monitor):
3. Configure the monitor.
Enter a descriptive name for your monitor, how often you want the monitor to check your site, and whether you want it to take a screenshot when an error is detected (under Advanced options):
4. Select locations for the monitor.
Set up your monitor to test from one of New Relic's worldwide locations. It monitors how your users from all over the world are able to access your page with high performance:
5. Enter the steps for your monitor.
Now the fun begins. Start by entering the URL for the site you want to monitor:
To locate elements in the monitor, you have several options. You can locate by:
6. Test your monitor.
You always want to test your monitor before deploying, so we've made it easy. Under Build steps, select Test and click Run Test.
If there's an error or an element isn't found, the monitor automatically highlights the broken step and details about the error, so you can troubleshoot.
7. Sit back and watch.
After the monitor is saved, the New Relic One UI generates a Selenium IDE script so you can do direct script editing for more advanced tests. For example, you could edit the script directly to use a regex instead of simple matching for string tests.
To view a summary of the performance of your user flow, simply select the monitor name. Then you can see request/response times, error response codes, duration, metadata, and tags:
To learn more and see a detailed walkthrough, watch the Nerdlog episode 'Test Complex User Flows With No Code':