How to monitor your website or server uptime with New Relic

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to setup Synthetic monitor on new relic. Synthetic monitor is a service offered by New relic, that you can use to monitor your server or application.  

If your server or website goes offline for no reason, then using synthetic monitor would be useful to find the cause of the downtime on your website, because you get notified in real time when the downtime happens. Keep in mind that this is not a solution to prevent the downtime, but it can be very useful to identify why the downtime is happening.

Synthethic monitoring offers services such as :

Availability - This option allows you to ping your site depending on the time you choose

SSL Expiration - This option allows you to check if the ssl certificate of your domain has expired

Page link crawler - This option allows you to test links on your site. This option is useful when you have a lot of links on your site, and you want to know which links are broken.

Page load performance - This option allows you to do a full page load of your website, it also allows you to choose the device type and browser that you want to use when testing.

User flow / functionality  - This option allows to do customized monitoring, which means you can use your script to browse or perform different tasks on your website

Endpoint availability - You can use this option if you want to test APIs on your site

User step execution - This option allows you to perform different tests on your site, for example, clicking a link, closing a pop up, hovering over an element etc

Below we are going to create a Ping monitor, that you can use to ping your site from different locations.

Create a monitor

Creating a monitor on synthetic monitoring is easy. You need to login to your new relic account, and go to "Synthetic Monitoring" section, which is located at the left sidebar as shown in the image below.

Now click on "Synthetic monitoring",  then click on "Create Monitor" button to create a monitor

Next, you need to select the type of the monitor that you want to use

Choosing the type of the monitor, depends on your website/app that you want to test. We are going to setup a ping monitor in this tutorial, so we chose "PING" monitor.

Next, you need to configure your monitor.  

First, you need to set a name for your monitor

Next, since we are going to setup a ping monitor, we need to set the URL of the website that we want to ping on the URL box.

Next, you need to set period. For example, if you want to ping your site every 1 minute then choose "1 min" as period.

You can also use tags for your monitor to better organize your monitors. Tags should be in this format

tag:tag

For example , I set ping:owlhowto as tag, tag can be anything.

💡
Note: Set a tag that you remember as this tag can be used to find the monitor that uses the tag. 

Now, you need to choose the locations of the devices that will be pinging your site.

You can choose as many locations as you want. However, new relic recommends you to choose not more than 3 different locations, from different continents.

Once you choose locations, click save monitor

Now your monitor should be saved, and active. To check the status of your monitor, go to "Synthetic Monitoring" and you should see your monitor listed below.

Click on the monitor, and it should take you to the summary page where you can see detailed information about your monitor.

That's it!

Conclusion

By now you should know what Synthetic Monitoring is, and how you can use synthetic monitoring to monitor or test your website.