• Get application security done the right way! Detect, Protect, Monitor, Accelerate, and more…
  • Monitor your site uptime, latency with Google Stackdriver from multiple locations and get notified when there is an issue.

    Google Stackdriver is fantastic hybrid SaaS (software-as-a-service) monitoring solutions for Google Cloud Platform (GCP) and Amazon Web Services (AWS).

    Stackdriver offers end-to-end monitoring solutions for application, infrastructure and cloud services. There is two pricing tier.

    1. Basic – for FREE, you get a limited number of metrics including uptime check.
    2. Premium – Starting from $8 per resource monthly with the full features.

    The following are available for FREE.

    I’ll not go into in-depth details about Stackdriver offering solution instead focus on monitoring website uptime and latency.

    If you are new to GCP or interested in learning architecting then I would recommend taking this course offered by Coursera.

    There are many monitoring solutions which I explained earlier; however, if you are already using GCP, then you don’t need third-party for uptime instead you can leverage Google Stackdriver.

    Let’s explore the procedure…

    I assume you have Google Cloud account, if not you can get it started with a FREE trial.

    • Login to Google Cloud console
    • Go to Monitoring under Stackdriver from left navigation (direct link)

    This is two-steps procedure.

    First, you need to add uptime check and second, create alerting policies.

    Add Uptime Check

    On Stackdriver page:

    • Go to uptime checks and click add uptime check

    • It will show you a popup where you can provide URL and requested information.

    I clicked on the test and as you can see it responded OK. This is a quick way to test if Stackdriver can reach your URL.

    You may also click on advanced options to see if you want those options. You will find the following one.

    • HTTP host header
    • Port number (default is 443)
    • Response content validation
    • Check uptime from (Global is selected default)
    • Custom header validation
    • Healthcheck timeout
    • Authentication

    • Once you select the necessary, save the configuration
    • It will give you a confirmation that uptime is created

    • Let’s click No thanks for now.

    Google will take few seconds to run the checks, and you should notice GREEN from all the locations.

    Great, let’s move to create alerting policies to complete the setup.

    Create Stackdriver Alerting Policies

    • Click on three dots to create alerting policy

    • Conditions will be automatically picked up
    • Add notification and enter your email address where you want to get notified
    • Add documentation if you want to be included in the email
    • Nave the policy

    • Save policy

    You will notice bell icon color get changed from grey to blue.

    Blue icon means uptime checks are associated with the alerting policy.

    This concludes Stackdriver will check the site every minute globally, and if found down then I will get notification by email.

    Checking URL Latency

    Stackdriver record latency information which is handy to test how fast your site load globally.

    • Go inside the uptime checks to see the latency graph.

    You can use latency information to troubleshoot and optimize the site performance.

    I hope this gives you an idea of performing checks from Google Stackdriver.