Health Check Website With GCP Cloud Monitoring

Introduction

If we want to health check a web site, there are many services on Cloud including AWS, Azure and GCP. However, GCP has the cheapest plan compared with others. If we only use for few sites, we can even pay no any charges.

Cloud Monitoring

Cloud Monitoring | Google Cloud

Cloud Monitoring provides visibility into the performance, uptime, and overall health of cloud-powered applications. It collects metrics, events, and metadata from Google Cloud, Amazon Web Services, hosted uptime probes, application instrumentation, and a variety of common application components.

Hands-on Configuring GCP Monitoring

First of all, we search for the monitoring on the search bar, then enter to the console.

In this dashboard, you are able to have an overview of all monitoring like Cloud Storage usage.

Before configuring the health check website, we can click alerting and then edit notification channels.

Choose the most suitable method to notify.

Then we go to the uptime checks, click “create uptime check” to create a new checking.

In this page, we are able to see the availability for different region. As my figure shown, I am monitoring two web sites, all green means they are now okay to all regions.

Here we just take GCP platform as our target website. What we configure is to health check https://cloud.google.com is okay or not. If it does not respond code 2xx, then it will return error. In the “Alert & Notification”, please choose the notification methods that we created early.

We can click “TEST” and it shows the result immediately. Then click “Create”.

When it just starts, you are not able to see any green logos here.

Wait for a moment, we can see Google Cloud has all green. At the same time, I try to shutdown my Network Tutorial VM and it shows the red signal immediately.

Cleanup

In fact, it is very easy to clean all the things we have done.

We just have to move to the options and then choose Delete. Then GCP will no longer monitor the web site.

Conclusion

GCP Monitoring is a very good tool for web site checking. In fact, we can not only health check URL, but also the instance, app engine and load balancer. If we have AWS account, we can even health check AWS instance given the credential to access AWS account. Of course, many people will choose GCP monitoring due to the large request of free tier.

Leave a Reply