How to Check Website Uptime using Google Cloud Monitoring

Cloudbooklet
3 min readAug 26, 2020

--

How to check website uptime using Google Cloud Monitoring. Using Google cloud you can create uptime checks which sends requests to a resource in certain intervals to check if the resource responds.

With Google cloud’s uptime check you can check a URL, availability of a VM instance, App Engine or AWS Load Balancer.

In this guide you are going to learn how to configure uptime checks and also configure an alert policy which sends notification to your email address or your phone number.

Prerequisites

A Google Cloud Account with billing activated.

Create a New Uptime Check

Go to your Google Cloud console and navigate to Operations >> Monitoring >> Uptime Checks. If you are using this for the first time you need to choose your project and automatically the required monitoring APIs will be enabled and workspace will be created for you.

Once the workspace is created you can start creating uptime checks.

  1. Click Create Uptime Check
  2. A popup window will appear where you can provide all the details.
  3. In the title you can provide a title to identify your check.
  4. In Check Type you can choose from HTTP, HTTPS or TCP. Here we will choose HTTPS if we use HTTPS.
  5. In the Resource Type you can choose from URL, App Engine, Elastic Load Balancer or Instance. Here we will choose URL and enter the domain name in Hostname.
  • If you choose URL you need to enter your domain name in the Hostname field or which ever you use to connect to the resource.
  • If you choose App Engine you need to select a service.
  • If you choose Load Balancer you need to choose the Load Balancer.
  • If you choose Instance you need to select the instance that needs to be monitored.

In Check every you can choose from 1 minute, 5 minutes, 10 minutes or 15 minutes.

Click Test to check the connection.

Once the test is passed you will receive a 200 response.

Click Save to create the uptime check.

Create Alert Policy

Once you have created an uptime check you will be prompted to create alert policy with the uptime check.

Enter name for the Alert Policy.

Your Uptime check will be configured by default, if not you can choose the uptime check created before.

Click Save.

Click Next.

In the Notification Channels, click Manage Notification Channels

Here you can add your email and phone number and choose them in the Alert Policy page.

Finally in the Steps to Fix the Issue you can enter the description of the instructions to follow.

Click Save.

Alright done. Now you have created an uptime check and configured an alert policy which notified if there is any downtime.

Conclusion

Now you have learned how to create and configure uptime check in Google cloud and setup an alert policy to notify if the response is not ok.

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

Cloudbooklet builds a large collection of Linux based guides and tutorials on Cloud platforms like Google Cloud, AWS, Azure, DigitalOcean and more

Originally published at https://www.cloudbooklet.com on August 26, 2020.

--

--

Cloudbooklet

Discover the power of AI, data science, and cloud technology with our insightful blog. Stay ahead of the curve with the latest trends and strategies.