HTTP/Webiste Checks is the way to ensure the availability and uptime of your website or API and also you can check the latency, status code, header, and response.

Steps to configure the HTTP check:

Log into Atatus. Then choose Synthetics from the dashboard.

To create the New check click on Create a New Check and select New API/Web Check.

1. Define request:

i) Choose the type of request as HTTP method in the drop down menu.

ii) Define your request: * Choose the method type such as GET, POST, HEAD or OPTIONS. * Enter the specific URL you'd like to monitor. * Advanced Options allow you to specify custom request headers, authentication credentials, body content, cookies, or other options.

define_request

iii) Give your HTTP check a name. Your checks will be better organized if you add tags, so you can find them more easily in the dashboard.

iv) Try running a sample check by clicking Test check.

2. Define assertions

Upon clicking the check Check button, you are automatically prompted with a basic assertion about the response from your server. It provides an indication of whether a check has been successful.

define_assertions

Every assertion can be customized. If you want to define your own assertion:

i) Click the Add Assertion button.

ii) Select the type and add the values accordingly.

Here are the list of types, operators and value types available in assertions.

Type Operator Value Type
header contains, does not contain, is, is not, matches regex, does not match regex String, Regex
body contains, does not contain, is, is not, matches regex, does not match regex, jsonpath, xpath String, Regex, (String, Regex)
status code is, is not Integer
response time is less than Integer in ms

3. Select Location

The locations can be selected one at a time or all at once. Select the respective location by clicking on the check box.

4. Set a frequency for testing

The frequency at which you want the check to run can be selected. The default frequency is once every minute.

5. Defining alert conditions

In defining alert conditions, you can make sure your check isn't triggered by intermittent network activity, so that you are only notified when your endpoint really has a problem.

There is a threshold amount of consecutive failures the location must experience before it is considered failed. You can set the retry count based on your preference.

Additionally, you can configure your check to notify when your endpoint goes down at a certain number of locations. The following alerting rule is set to send a notification if the check fails for three minutes on two different locations.

6. Notify your team

After creating alerts, specify any email address you want your check to send alerts to.

In addition, you can use integration channels such as Slack, PagerDuty, Microsoft Teams, webhooks and much more. Synthetic alerts are triggered after you set up the appropriate integration with the notification tools.

alert_notifications

To setup:

i) You can set up new notification channels here by clicking the Setup new notification channels button.

ii) In the Notification Channel section, click Create New Notification channel.

iii) Choose your desired channel type such as Slack, Teams, PagerDuty and so on.

iv) Provide all the necessary details.

v) Click on Create Channel.

Once you've completed your test, click on Create New Check.