{"id":3951,"date":"2022-12-09T05:58:40","date_gmt":"2022-12-09T05:58:40","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=3951"},"modified":"2023-08-03T10:27:01","modified_gmt":"2023-08-03T10:27:01","slug":"uptime-checks-and-alerting-in-gcp-monitoring","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/uptime-checks-and-alerting-in-gcp-monitoring","title":{"rendered":"How to Configure Uptime Checks in Google Cloud Monitoring?"},"content":{"rendered":"<p>Google Cloud Operations suite is a bundle of tools to monitor, troubleshoot, and enhance the performance of your cloud infrastructure or applications deployed on the cloud infrastructure, previously it&#8217;s called as \u201cStack driver&#8221;<\/p>\n<p><a href=\"https:\/\/www.checkmateq.com\/cloud\">Cloud<\/a> Monitoring provides end-to-end monitoring solutions, you can choose to use it for free or pay for it if you want no limits on the uptime-check configurations, The cost will depend on your usage, you can check these details on official pricing page to explore more about its <a href=\"https:\/\/cloud.google.com\/stackdriver\/pricing\">cost <\/a>, While there are several configuration options and advanced monitoring capabilities that you get with Google\u2019s Cloud monitoring tools, here, we focus on monitoring websites uptime and latency.<\/p>\n<p>If you are completely new to GCP Operation Suite, please refer this blog on <a href=\"https:\/\/www.checkmateq.com\/blog\/google-cloud-platform\/\">Cloud Monitoring<\/a> and <a href=\"https:\/\/www.checkmateq.com\/blog\/logging-in-google-cloud-platform\/\">Cloud Logging<\/a><\/p>\n<h2 id=\"h-getting-started-with-google-cloud-monitoring\">Getting Started with Google Cloud Monitoring<\/h2>\n<p>Now, all you have to do is, log in to the Google Cloud Monitoring console, then head to the sidebar and click on \u201c<strong>Uptime checks<\/strong>.\u201d, next you have to do configurations for uptime check.<\/p>\n<h3 id=\"h-add-an-uptime-check-configuration\"><strong>Configuring Uptime Checks<\/strong><\/h3>\n<p>You need to follow through four steps to add an uptime check for your website successfully, here Iam configuring uptime check for a website hosted on App Engine<\/p>\n<p>Now in the Uptime check section, click on \u201c<strong>CREATE UPTIME CHECK<\/strong>\u201d to get started.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3958 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company-300x143.jpeg\" alt=\"\" width=\"903\" height=\"430\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company-300x143.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company-1024x487.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company-768x366.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company-1536x731.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company-1200x571.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-Management-Company.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>Then in step -2 you have to add a name to your configuration and then give the target information to specify what you want to monitor.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3959 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-infrastructure-service-208x300.jpeg\" alt=\"\" width=\"589\" height=\"850\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-infrastructure-service-208x300.jpeg 208w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-infrastructure-service.jpeg 673w\" sizes=\"(max-width: 589px) 85vw, 589px\" \/><\/p>\n<p>As mentioned, here we are focusing on a web based application. So I am opting for resource type HTTPS protocol with the page URL as the hostname.<\/p>\n<p>For this I gave link of a service hosted on my Google App Engine without specifying a path, but if you want to configure uptime checks for a specific directory or a subpage, you can simply do it by entering the path for it in the Path column provided.<\/p>\n<p>And from <strong>Check Frequency<\/strong>, it also allows you to set the frequency for the uptime check, 1 minute is the default and the fastest available, you can choose from 1\u201315-minute time intervals, below are some more target options where you can further configure for Request Method, port number, Custom header validation give Authentication details.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3960 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-solutions--195x300.jpeg\" alt=\"\" width=\"551\" height=\"848\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-solutions--195x300.jpeg 195w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-solutions-.jpeg 634w\" sizes=\"(max-width: 551px) 85vw, 551px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Configure Response Validation<\/h3>\n<p>Next in Step-3, you can set a custom response timeout for the request to wait and check whether if the website is up and running or not.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3961 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-google-cloud-services-210x300.jpeg\" alt=\"\" width=\"493\" height=\"704\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-google-cloud-services-210x300.jpeg 210w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-google-cloud-services.jpeg 663w\" sizes=\"(max-width: 493px) 85vw, 493px\" \/><\/p>\n<p>Enable content matching as shown above, to check for availability of any specific content just by selecting the Response Content match type and giving the expected response content.<\/p>\n<p>As of now all the configuration to create an uptime check has been configured, Now move on to the next step to create an alert and select a notification service whenever a failure is detected.<\/p>\n<h3 id=\"h-create-google-monitoring-alert-notification\">Create Monitoring Alert &amp; Notification Channel<\/h3>\n<p>To get notification in case of a failure you have to set up alerts along with a notification channel that you want to receive updates on, here you have to specify a name and select the duration of notifications between 1 minute to 23 hours 30 minutes.<\/p>\n<p>If you don&#8217;t have an already created notification channel, go to the notification channel manager page separately and explore all the options available and create the notification channels as needed, you will have a variety of options like email,\u00a0Slack, <a href=\"https:\/\/www.checkmateq.com\/google-cloud\">Google Cloud<\/a> <a href=\"https:\/\/www.checkmateq.com\/android-development\">Mobile App<\/a>, Webhooks, SMS.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3962 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-management-solutions-261x300.jpeg\" alt=\"\" width=\"511\" height=\"587\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-management-solutions-261x300.jpeg 261w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-management-solutions-768x884.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-Infrastructure-management-solutions.jpeg 938w\" sizes=\"(max-width: 511px) 85vw, 511px\" \/><\/p>\n<p>Once you are done with creating a notification channel, then select the notification channels that you want to get alert on and to complete the uptime check configuration.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3963 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-support-280x300.jpeg\" alt=\"\" width=\"517\" height=\"554\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-support-280x300.jpeg 280w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-support-768x822.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-cloud-support.jpeg 925w\" sizes=\"(max-width: 517px) 85vw, 517px\" \/><\/p>\n<p>Please test it to see if you have done your configurations right, if all the configuration is good, you will receive a message as \u201cResponded with 200 (OK)\u201d, along with a green tick.<\/p>\n<p>And then go ahead to add the configuration by clicking on CREATE, soon you can see status of your service from all the regions.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3964 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service-300x140.jpeg\" alt=\"\" width=\"825\" height=\"385\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service-300x140.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service-1024x477.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service-768x358.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service-1536x715.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service-1200x559.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/12\/Checkmate-offshore-it-service.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This blog is written by Checkmate Global Technologies DevOps Engineer, You can please <a href=\"https:\/\/www.checkmateq.com\/contact-us\">reach out<\/a> to him for any Cloud Infrastructure related discussions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Cloud Operations suite is a bundle of tools to monitor, troubleshoot, and enhance the performance of your cloud infrastructure or applications deployed on the cloud infrastructure, previously it&#8217;s called as \u201cStack driver&#8221; Cloud Monitoring provides end-to-end monitoring solutions, you can choose to use it for free or pay for it if you want no &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/uptime-checks-and-alerting-in-gcp-monitoring\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Configure Uptime Checks in Google Cloud Monitoring?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3966,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[3,93,79,2,71,70,69,68,59,11,78,63,23,16,24,80,8],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/3951"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=3951"}],"version-history":[{"count":12,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/3951\/revisions"}],"predecessor-version":[{"id":4200,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/3951\/revisions\/4200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/3966"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=3951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=3951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=3951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}