Synthetics monitoring is a type of monitoring that uses automated scripts to test your website or application from different locations and browsers. This helps you to identify and fix performance problems before your users even notice them.
New Relic Synthetics is a powerful tool that makes it easy to set up and manage synthetic monitoring. In this article, we will walk you through the steps on how to get synthetics monitoring to work in New Relic.
Prerequisites
Before you can get started with synthetics monitoring, you will need to:
- Have a New Relic account.
- Install the New Relic Synthetics agent on your web server or application server.
- Create a New Relic Synthetics monitor.
Installing the New Relic Synthetics agent
The New Relic Synthetics agent is a lightweight Java agent that collects performance data from your website or application. To install the agent, follow these steps:
![Synthetic monitoring: Understand load times | New Relic Documentation](https://docs.newrelic.com/static/synthetic_screenshot-full_resources-Page-4dfdd7aef28fbe0508c524ee010c1cdf.webp)
- Download the New Relic Synthetics agent from the New Relic website.
- Unzip the agent archive and copy the agent JAR file to your web server or application server.
- Add the following line to your web server’s or application server’s startup script:
java -jar newrelic-synthetics-agent.jar
Creating a New Relic Synthetics monitor
To create a New Relic Synthetics monitor, follow these steps:
- Log in to your New Relic account.
- Click on the Synthetics tab.
- Click on the Create monitor button.
- Select the type of monitor you want to create. For this example, we will create a simple browser monitor.
- Enter a name for your monitor and select the location from which you want to run the monitor.
- Click on the Create monitor button.
Configuring your New Relic Synthetics monitor
Once you have created your monitor, you need to configure it. To do this, click on the name of your monitor in the Synthetics tab.
The following settings are available for configuring your New Relic Synthetics monitor:
- Frequency: How often you want the monitor to run.
- Thresholds: The minimum and maximum performance metrics that you want the monitor to meet.
- Notifications: How you want to be notified if the monitor fails.
Running your New Relic Synthetics monitor
![Overview Dashboard Tutorial New Relic APM - YouTube](https://i.ytimg.com/vi/EGMacfyuA9w/maxresdefault.jpg)
Once you have configured your New Relic Synthetics monitor, it will start running automatically. You can view the results of your monitor in the Synthetics tab.
The following metrics are available for each monitor:
- Availability: Whether or not the monitor was able to access your website or application.
- Page load time: The time it took for the monitor to load your website or application.
- Response time: The time it took for the monitor to receive a response from your website or application.
- Errors: The number of errors that occurred during the monitor run.
Troubleshooting
If you are having problems with your New Relic Synthetics monitor, you can troubleshoot the problem by following these steps:
- Check the logs for your New Relic Synthetics agent.
- Check the configuration of your New Relic Synthetics monitor.
- Try running the monitor from a different location.
- Contact New Relic support for assistance.
Additional tips
![Synthetic vs. Real-User Monitoring: How to Improve Your Customer Experience | New Relic](https://newrelic.com/sites/default/files/wp_blog_inline_files/RUM-4.png)
Here are some additional tips for getting the most out of New Relic Synthetics monitoring:
- Create multiple monitors to test different aspects of your website or application.
- Use thresholds to identify and fix performance problems before your users even notice them.
- Set up notifications so that you are alerted to performance problems as soon as they occur.
- Use New Relic Synthetics to monitor your website or application from different locations around the world.
Conclusion
New Relic Synthetics is a powerful tool that can help you to improve the performance of your website or application. By following the steps in this article, you can get synthetics monitoring up and running in no time.