{"id":3540,"date":"2022-11-07T11:34:19","date_gmt":"2022-11-07T11:34:19","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=3540"},"modified":"2023-08-04T10:41:37","modified_gmt":"2023-08-04T10:41:37","slug":"google-cloud-platform","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/google-cloud-platform","title":{"rendered":"How to Setup Monitoring in Google Cloud Platform ?"},"content":{"rendered":"<section id=\"all-features\" class=\"module-section\">\n<div id=\"section-6\" class=\"cloud-jump-section\" data-cloud-main-text=\"All features\" data-cloud-is-subtitle-linked=\"true\">\n<div class=\"feature-module\">\n<div class=\"feature-module__feature-table\">\n<div class=\"devsite-table-wrapper\">\n<div class=\"key-features-module__key-feature cws-spacer-4--bottom\">\n<div class=\" cws-content-block \">\n<div class=\"cws-content-block__content \">\n<h3 data-text=\" SLO monitoring\">Cloud Monitoring<\/h3>\n<p data-text=\" SLO monitoring\">Cloud Monitoring is a <a href=\"https:\/\/www.checkmateq.com\/google-cloud\">Google Clouds<\/a> observability &amp; infrastructure monitoring service, it provides visibility across your product development, DevOps Operations and infrastructure regardless of whether your app is running in Google cloud Platform or On-premises or in other clouds such <a href=\"https:\/\/www.checkmateq.com\/aws-cloud\">Amazon AWS<\/a> or Microsoft Azure. It automatically captures metrics and also allows you to define custom dashboards which are uniquely required for your application web traffic and business use cases and add the corresponding charts to a dashboard.<\/p>\n<p data-text=\" SLO monitoring\"><strong>But can you sit around all day looking at your dashboards for any anomalies or usage metrics?<\/strong> for this cloud monitoring provides you with<strong> Alerting<\/strong> service, this allows you to create policies to alert on performance metrics, uptime, cpu, application element monitoring and several other things.<\/p>\n<p data-text=\" SLO monitoring\">Cloud monitoring is simple, you can either access it on the Google cloud console or using the APIs, if you are using GKE monitoring is enabled by default for your clusters, for VM&#8217;s you should <strong>install Google Clouds monitoring Agent<\/strong> to get all type of metrics, for all GCP services cloud monitoring is pre-configured to automatically collect metrics.<\/p>\n<\/div>\n<\/div>\n<p data-text=\" SLO monitoring\">On your Google cloud web console go-to Monitoring under operation suite.<\/p>\n<p data-text=\" SLO monitoring\"><img loading=\"lazy\" class=\"aligncenter wp-image-3533\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services-300x152.jpeg\" alt=\"Google cloud\" width=\"820\" height=\"415\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services-1024x519.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services-768x389.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services-1536x778.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services-1200x608.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrasructure-Monitoring-Services.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p data-text=\" SLO monitoring\">As shown in the above snapshot from GCP web console Installing Agent, Creating Custom dashboard, creating uptime check and creating an alert will give you better understanding of <a href=\"https:\/\/www.checkmateq.com\/cloud\">cloud<\/a> monitoring.<\/p>\n<\/div>\n<div class=\"key-features-module__key-feature cws-spacer-4--bottom\">\n<div class=\" cws-content-block \">\n<div class=\"cws-content-block__content \">\n<div class=\"cws-body cws-content-block__text\">\n<h3>Installing Cloud Monitoring Agent on Virtual Machine<\/h3>\n<p>Use below given link to download the agent installation script<\/p>\n<pre>curl -sSO https:\/\/dl.google.com\/cloudagents\/add-monitoring-agent-repo.sh<\/pre>\n<p>Add the agent&#8217;s package repository and install it<\/p>\n<pre>sudo bash add-monitoring-agent-repo.sh --also-install<\/pre>\n<p>Then Start the agent service<\/p>\n<pre>sudo service stackdriver-agent start<\/pre>\n<p>You can also install Monitoring Agent from Console; select dashboards from monitoring and I will be installing agent on Compute Engine VM&#8217;s<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3534 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services-300x152.jpeg\" alt=\"\" width=\"807\" height=\"409\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services-1024x520.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services-768x390.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services-1536x780.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services-1200x609.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Cloud-Monitoring-Services.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Then select the VM instance and install the agent<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3535 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support-300x169.jpg\" alt=\"\" width=\"878\" height=\"495\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support-300x169.jpg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support-1024x576.jpg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support-768x432.jpg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support-1536x864.jpg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support-1200x675.jpg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-GCP-Cloud-Support.jpg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<h3><\/h3>\n<h3>Creating Custom Dashboards<\/h3>\n<p>By default, Monitoring creates dashboards for each service you create in GCP, you can also create your own custom dashboards according to your requirements, let&#8217;s create custom dashboards now, follow below steps.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3536 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033-300x169.png\" alt=\"\" width=\"929\" height=\"523\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033-300x169.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033-1024x576.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033-768x432.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033-1536x864.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033-1200x675.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-1033.png 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Then select the chart type from Chart Library and then select the resource and the particular metric that you want to monitor,<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-3537\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services-300x169.jpg\" alt=\"Dashboards\" width=\"838\" height=\"472\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services-300x169.jpg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services-1024x576.jpg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services-768x432.jpg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services-1536x864.jpg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services-1200x675.jpg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Infrastructure-Management-Services.jpg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Now select the resource and metric type from the list, you can easily search for the resource\/service and see the available metrics for that resource.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3538 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support-300x152.jpeg\" alt=\"\" width=\"863\" height=\"437\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support-1024x520.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support-768x390.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support-1536x780.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support-1200x609.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Support.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Search and select the resource and metric type from the list<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-3539 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions-300x153.jpeg\" alt=\"\" width=\"875\" height=\"446\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions-1024x522.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions-768x392.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions-1536x783.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions-1200x612.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-Cloud-Solutions.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"devsite-table-wrapper\">\n<div class=\"key-features-module__key-feature cws-spacer-4--bottom\">\n<div class=\" cws-content-block \">\n<div class=\"cws-content-block__content \">\n<div class=\"cws-body cws-content-block__text\">\n<p>You can create and add as many charts as possible you want, and you can also filter or group the metrics from the console itself.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-3543\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-offshore-IT-Service-300x153.jpeg\" alt=\"Monitoring\" width=\"839\" height=\"428\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-offshore-IT-Service-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-offshore-IT-Service-1024x522.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-offshore-IT-Service-768x391.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-offshore-IT-Service-1536x782.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/Checkmate-offshore-IT-Service-1200x611.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/11\/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>Author Details<\/p>\n<p>This blog is written by <a href=\"https:\/\/www.checkmateq.com\">Checkmate Global Technologies<\/a> DevOps Engineer, You can contact with us to learn Google cloud best practices or\u00a0for any offshore infrastructure management services <a href=\"https:\/\/www.checkmateq.com\/contact-us\">website<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/checkmatglobal\/\">LinkedIn<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Cloud Monitoring Cloud Monitoring is a Google Clouds observability &amp; infrastructure monitoring service, it provides visibility across your product development, DevOps Operations and infrastructure regardless of whether your app is running in Google cloud Platform or On-premises or in other clouds such Amazon AWS or Microsoft Azure. It automatically captures metrics and also allows you &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/google-cloud-platform\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Setup Monitoring in Google Cloud Platform ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3554,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[3,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\/3540"}],"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=3540"}],"version-history":[{"count":14,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/3540\/revisions"}],"predecessor-version":[{"id":4212,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/3540\/revisions\/4212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/3554"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=3540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=3540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=3540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}