Introduction to New Relic One - Synthetics
AWS users generally use CloudWatch for monitoring, but I was tasked with designing monitoring AWS resources from outside of AWS in case of regional issues. New Relic One, with its modern UI and powerful features, would be a great solution.
Signing up for New Relic One Account
Visit New Relic One and sign up for a free account, which allows users to ingest up to 100GB of data per month and grants one user full access to all features.
Click Sign up
.
Enter your name and email address, and click Start now
to begin.
You will receive a registration email shortly.
Please complete the registration process.
Synthetics Setting
Click Synthetics
in menu.
Click Get started
.
Enter the information as follows.
Field | Value |
---|---|
Monitor Type | API Test |
Monitoring Name | Anything you like |
Monitoring Locations | Anywhere you like |
Schedule | Any interval Based on your requirements |
Modify a default script.
The example here accesses to https://www.google.co.jp
using GET
method.
After completing the Synthetics setup, return to the top of the page by clicking the icon in the upper left corner.
Notification Setting
Creating Alert Policy
Select Alerts & AI
in menu and click Notification channels
.
Since there are no notification channels set up yet, click Create a policy
to create an alert policy.
Select Incident Preference
based on your requirements.
Creating Alert Condition
Click Create a condition
.
I selected Single failure
this time as a condition type, which means that alerts will be sent after a single failure.
Select Synthetics
.
Enter a condition name of your choice and click Create condition
.
Creating Notification Channel
Click Notification channels
in a side menu.
Click New notification channel
.
I selected Email
as a channel type.
Of course, you can chose Slack
or others.
Enter an email address to which alerts will be sent and click Create channel
.
Attaching Alert Policy to Notification Channel
Click Add alert policies
.
Select the alert policy which has been created above, and save changes.
You can verify the alert policy that is linked to the notification channel.
Testing
To intentionally trigger an API test failure and receive an alert, modify the URL to https://www.google.co.hoge
in the script that was created earlier.
You should receive an alert.
After confirmation of an incident, click Acknowledge
.
Close the incident manually.
(Optional) Deleting New Relic One Account
If you no longer need your account, follow the steps below to delete it.
Navigate to the organization page by clicking Organization and Access
on your account menu.
Click Delete organization
.
Conclusion
Using New Relic, you can improve the observability of your applications with powerful UI.
I hope you will find this post useful.