Amazon AWS Certified SysOps Administrator Associate – Monitoring, Auditing and Performance

  • By
  • June 10, 2023
0 Comment

1. CloudWatch Metrics

Okay, so we’ve seen Cloud Watch throughout the course, but let’s just go and do a quick summary on it. So first, CloudWatch Metrics. It will provide metrics for every service in AWS, and you need to understand what the metric means. So usually the name of the metric gives you a pretty good indication of what it is, for example, CPU utilization, Networking. And then based on how the metric is behaving, it gives you an idea of how the service is behaving, and you can do some troubleshooting based on this.

So metrics belong to namespaces, and then you have a dimension which is an attribute of a metric, for example, instance, ID environment, ETCA, etc. And you can choose up to ten dimensions per metric. Metrics will have timestamps and you can create Collaboration Dashboards of Metrics. So in this course, we’ve seen EC two metrics, for example, and we’ve also seen the EC two detailed monitoring. So we know that by default, EC two instances will have metrics every five minutes. But if you enable detailed monitoring for a cost, it’s additional, then you’re going to get data of metrics every 1 minute.

And if you enable this, then for example, you’re going to be able to react faster to changing metrics for your EC two instances, and it gives you some benefits for your SG if you want to scale out and in faster. Now, the feature allows you to get ten detailed monitoring metrics, and the thing to know is that the EC two memory usage, so your Ram is not pushed by default and needs to be pushed from the instance as a customer metric. And we’ll have a look at how to push custom metrics very soon. So when you are in the Cloud Watch dashboard, on the left hand side there is metrics, and you can find all the metrics. And as you can see, we see all the namespaces in here for our metrics.

So if you have a look, we have based on services, for example, ELB, Auto, Scaling, EBS, EC Two, EFS, and so on. So a lot of information given to you here. So we can click on EC two, and we can have a per instance metric just to see one metric. And I’m going to type credit to see the CPU credit balance. For example, I will take this instance, which was created a long time ago, and then what I’m going to do is I’m going to choose a custom range, which is going to be one month to find some data in here. Okay, so we have the data here, and so the cool thing with Cloud Watch metrics is that you can just click and select the time span you want.

And here we go, we’re getting some information around our metrics. As you can see, we get metrics every five minutes here, so every data point is every five minutes, because detailed monitoring was not enabled for this instance. Okay, but if I did enable detailed monitoring, I would get data every one minutes. So this is just the basics of CloudWatch metrics, nothing too fancy, but we can definitely filter by time. We can view it as a different line, so stacked area or line or number or a pie chart, you can add it to your dashboard, you can download to CSV, you can share it.

Okay, so college metric is very, very handy, and you can have a look at all the metrics based on the region you want, based on the dimension you want, the resource ID you want, so you can filter everything. So that’s it for college metrics. I hope you liked it and I will see you in the next lecture.

2. CloudWatch Custom Metrics

So all the metrics we’ve seen so far in this course are metrics taken directly from the aid of services that we have enabled by default. But there is a way for you to get customer metrics for Cloud Watch. And this is you can define your own custom metrics. For example, you wanted to push the memory usage of the Ram to Clywatch or the disk space or the number of login user for your application.

For this you would use an API call named Put Metric Data. You can add dimensions or attributes to your segment metrics, for example, instance, ID, environment, name, whatever you want, really, it’s up to you to name it however you want. And then you can specify a metric resolution with the storage resolution API parameter with two possible values. So either it’s a standard custom metric and you can push a metric every 1 minute, so 60 seconds, or you can enable very high resolution, in which case you can enable to push metrics every 1510 or 30 seconds.

Okay? Something good to know is that with custom metrics, when you push a metric in the past or in the future, this works as well. So this is a very important example point. So if you are pushing a metric up to two weeks in the past or 2 hours in the future, you’re not going to get an error from Cloud Watch, okay? This is going to accept your metric as is. And so that means you need to make sure that your EC two instance time is correctly configured if you want the metrics to be synchronized with the actual time from AWS. So let’s push a custom metric.

And for this I went to the documentation into Cloud Watch, put Metric data. This is the CLI documentation and this shows you how to push a metric into Cloud Watch. So I’m not going to read the documentation. You can have a look at all the parameters in here, okay? But very important timestamp can be specified. And so you can specify a timestamp up to two weeks in the past and 2 hours in the future. So very, very important.

Then you can specify the data, the name of the value, the units, the value and so on, dimensions, as well as the storage resolution if you wanted to get a high resolution metric or a standard resolution. Okay, so what I’m going to do is just push a very custom example.

So at the end, there’s examples. And you can use a metrics JS file to push a metric like this if you wanted to, and then use this API call. Or if you wanted to go even quicker. You can just use one API command to specify the value of your metric, the unit, the bytes, as well as instance ID, instance type, and so on. So let me take this command right here, and we’re going to open the Cloud shell utility to push that metric okay, so Cloud Shell is launched and now I’m going to paste the command in and then press Enter. So this is going to push a custom metric into Cloud Watch.

Now you have to imagine that if this is done from an easy to instance with a script, for example, you can push any metric regularly. Right now I’m just pushing one data point using the CLI into Cloud Watch, which is quite handy already. Okay? And if you know the unified agent for Cloud Watch, what it does is that it does use this put metric data API call to push metrics into Cloud Watch regularly. So when this is pushed, we have pushed a new namespace named my namespace. And so that means that if I go back to my Cloud Watch metrics and refresh this, I need to clear my graph and then I’m just going to go out of the service and go back to the service. It’s going to be easier then go to all metrics.

And as you can see, we have a custom namespace that has been created right here. So all of those before where namespace is created by AWS, but now we have a namespace created by us. And so in it we have two dimensions, instance ID and instance type. And these represents the same instance ID and instance type dimensions that were specified in the command.

So this is up to you to define these dimensions. Obviously. Then you click on it and you can see the instance ID, the instance type and the metric name buffers. And if I click on it now, we don’t see much because well, we don’t have much. But there is one data point in here that has been created, okay? And this is part of my custom metric. So that’s it. It’s quite handy. You can see how to create custom metrics very easily using an API call. So I hope you liked it and I will see you in the next lecture.

Comments
* The most recent comment are at the top

Interesting posts

Impact of AI and Machine Learning on IT Certifications: How AI is influencing IT Certification Courses and Exams

The tech world is like a never-ending game of upgrades, and IT certifications are no exception. With Artificial Intelligence (AI) and Machine Learning (ML) taking over everything these days, it’s no surprise they are shaking things up in the world of IT training. As these technologies keep evolving, they are seriously influencing IT certifications, changing… Read More »

Blockchain Technology Certifications: Exploring Certifications For Blockchain Technology And Their Relevance In Various Industries Beyond Just Cryptocurrency

Greetings! So, you’re curious about blockchain technology and wondering if diving into certifications is worth your while? Well, you’ve come to the right place! Blockchain is not just the backbone of cryptocurrency; it’s a revolutionary technology that’s making waves across various industries, from finance to healthcare and beyond. Let’s unpack the world of blockchain certifications… Read More »

Everything ENNA: Cisco’s New Network Assurance Specialist Certification

The landscape of networking is constantly evolving, driven by rapid technological advancements and growing business demands. For IT professionals, staying ahead in this dynamic environment requires an ongoing commitment to developing and refining their skills. Recognizing the critical need for specialized expertise in network assurance, Cisco has introduced the Cisco Enterprise Network Assurance (ENNA) v1.0… Read More »

Best Networking Certifications to Earn in 2024

The internet is a wondrous invention that connects us to information and entertainment at lightning speed, except when it doesn’t. Honestly, grappling with network slowdowns and untangling those troubleshooting puzzles can drive just about anyone to the brink of frustration. But what if you could become the master of your own digital destiny? Enter the… Read More »

Navigating Vendor-Neutral vs Vendor-Specific Certifications: In-depth Analysis Of The Pros And Cons, With Guidance On Choosing The Right Type For Your Career Goals

Hey, tech folks! Today, we’re slicing through the fog around a classic dilemma in the IT certification world: vendor-neutral vs vendor-specific certifications. Whether you’re a fresh-faced newbie or a seasoned geek, picking the right cert can feel like trying to choose your favorite ice cream flavor at a new parlor – exciting but kinda overwhelming.… Read More »

Achieving Your ISO Certification Made Simple

So, you’ve decided to step up your game and snag that ISO certification, huh? Good on you! Whether it’s to polish your company’s reputation, meet supplier requirements, or enhance operational efficiency, getting ISO certified is like telling the world, “Hey, we really know what we’re doing!” But, like with any worthwhile endeavor, the road to… Read More »

img