DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Microservices
  4. Checking Website Health From Different Parts of the World

Checking Website Health From Different Parts of the World

All this can be done for free, which is why I recommend anyone who is responsible for, or interested in the health of a particular service, to add these monitors.

Federico Toledo user avatar by
Federico Toledo
·
May. 15, 17 · Tutorial
Like (1)
Save
Tweet
Share
2.53K Views

Join the DZone community and get the full member experience.

Join For Free

New Relic is a company that offers many different tools and is perhaps best known for its application performance monitoring (APM). At least that’s what I know it best for since we often use this tool when we do performance tests at Abstracta to get useful information about how our infrastructure behaves under tests. Besides the APM, it has another tool that I want to cover in this post, New Relic Synthetics, which you can use with a free or paid New Relic account. It’s useful for adding monitors for services or websites (anything accessible by an HTTP URL) and setting up email notifications for when said monitors fail.

How to Set Up Your Monitor in New Relic Synthetics

After creating an account in New Relic, one has access to the different tools that it provides. In particular, we will look at how to get started with Synthetics. First, we must create a monitor, taking us to this page:

crear-monitor-ping-en-Synthetics-New-Relic-290x300-min

There are several different types of monitors available. For example, there is one called Ping, which tries to access the given URL and makes a validation of some text in the response. You can also implement an automated test that is a little more complex, but for that one, you’ll need a paid account.

Here there is documentation from the New Relic site, but to create the monitor, all you need to do is put a name, the URL for what you want to validate, and some text that you want to check that appears in the response page. You’ll also have to enter your email to receive notifications, the places in the world from where you want it to access your URL, and how often. In the following image, you can see one of the monitors that I have created recently:

monitor settings in new relic synthetics

So, with this setup, I have it so that it will try to access the URL (this blog) every 10 minutes, from five different places in the world, and if there is a failure, I’ll get a notification by email.

Benefits of New Relic Synthetics

Besides the email notifications, all results and response times are recorded, so I will be able to access the historical information later (in the free version, it is saved for a week), as shown in the following image:

stats-de-newrelic-synthetics-min

In addition, I have historical information about the failures, can list the worst response times by location in the world, and I can do a little deeper analysis of how the network behaves in each case:

network timings image

You can see the list of monitors and some relevant information from the home page of Synthetics:

image of list of monitors in new relic synthetics

When there is a problem somewhere that is of interest to me, I know that I will find out about it 10 minutes after it occurs, max! In addition, I have historical information on response times from different parts of the world. All this can be done for free, which is why I recommend anyone who is responsible for, or interested in the health of a particular service, to add these monitors and rest assured that you will find out when there is a problem.

To show you even more of the reporting, here is another example of some crashes that the TestingUy site saw over the last week that New Relic notified me of. This is how Synthetics presented the information regarding that failure:

caídas-de-testinguy-Synthetics-New-Relic-min

And the details about one of those crashes:
fallo-sitio-testinguy-Synthetics-New-Relic-min

Health (Apple) Monitor (synchronization)

Published at DZone with permission of Federico Toledo, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is Testing as a Service?
  • Comparing Kubernetes Gateway and Ingress APIs
  • Leaders Make Their Own Problems
  • Deduplication and Data Stewardship Process in MDM

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: