1. Home
  2. Training Library
  3. Google Cloud Platform
  4. Courses
  5. Deploying Networking and Compute Resources on Google Cloud Platform

DEMO: Installing the Ops Agent for Monitoring and Logging

Start course
Overview
Difficulty
Beginner
Duration
1h 21m
Students
2539
Ratings
4.7/5
starstarstarstarstar-half
Description

This course has been designed to teach you how to deploy network and compute resources on Google Cloud Platform. The content in this course will help prepare you for the Associate Cloud Engineer exam.

Learning Objectives

  • To understand key networking and compute resources on Google Cloud Platform
  • Be able to explain different networking and compute features commonly used on GCP
  • Be able to deploy key networking and compute resources on Google Cloud Platform

Intended Audience

  • Those who are preparing for the Associate Cloud Engineer exam
  • Those looking to learn more about GCP networking and compute features

Prerequisites

To get the most from this course then you should have some exposure to GCP resources, such as VPCs and Compute Instances. However, this is not essential.

Transcript

Welcome back. So, what I'm going to do in this quick demonstration is just walk you through the process of installing the Ops Agent on an existing VM in Google Cloud Platform. Now, on the screen I'm logged into my platform, and I have my project open here. And what we're going to do here is browse into the monitoring section, and then we'll actually open up a VM, and we'll install the agent. 

So, to do this, we're going to select the hamburger here for the navigation menu, and then what happens here is we scroll down, and it's near the bottom here. Under Operations, we have Monitoring. What we're going to do here is open our dashboards here, under Monitoring. And then from here, since we're going to install this Ops Agent on a VM instance, we're going to select VM instances in the dashboards options here.

Then you'll see here, I have server01. Server01 is going to be the server we install on. You'll notice we have no agent detected currently, so to do this, we simply select the checkbox next to server01 and then we click on 'Install Agents'. Now, what we could do here is just copy the code that it gives us here. If we were going to run this in Cloud Shell manually, but what you can do here is simply click 'Run in Cloud Shell, and when I do this, it's going to open these commands right in Cloud Shell. So, we'll go ahead and click 'Run in Cloud Shell'. And let me see if I can drag this up a little bit, there we go. I'm going to just scroll this back down. 

So, you'll notice here it opened up these commands already, and it's actually running this using a file called agentstoinstall.csv. This has already created that CSV for me, I didn't create any files, this actually does it for me based on the servers that I selected. So, what I'm going to do here is just hit 'Enter' on my keyboard. And what it does here is it asks me to authorize Cloud Shell, so we'll go ahead and authorize it. You see the progress bar here, and we'll give this a few minutes to complete. You'll see we got one of one succeeded, zero of one failed, and one of one completed. 

What I'll do here is I'll close Cloud Shell up, and you see here that the agent now shows pending. So, we'll give this a few minutes and then what we'll do is refresh and we'll see what this shows when everything is said and done. Let's go ahead and refresh the screen. Now, notice here, and this is something to keep an eye on. Right now, it's telling me the Legacy Agent is installed. Now, we didn't cover Legacy Agent here because it's being phased out, but if we give this another minute or two, this actually does go through the process and it does in fact install the Ops Agent. 

So, we'll go ahead and just refresh here and see if it shows up right away. All right, let's give it another minute or two, and we'll do a refresh and you'll see how this agent summary will eventually show one VM with Ops Agent. Let's go ahead and refresh one more time here. It usually takes a few minutes, and there we go. So, now we have one VM with the Ops Agent and none with the legacy and none with no agents. You'll see down here server01 shows the Ops Agent is installed and active. So, that's how you can use the Google Cloud Platform console to install the Ops Agent on a Virtual Machine in Google Cloud.

 

About the Author
Students
70756
Courses
77
Learning Paths
46

Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.

In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.

In his spare time, Tom enjoys camping, fishing, and playing poker.

Covered Topics