DP-300 Microsoft Azure Database – Monitor activity and performance

  • By
  • July 17, 2023
0 Comment

1. 38. prepare an operational performance baseline – Metrics Explorer

Hello. And in this section we’re going to be monitoring activity and performance and we’re going to start with preparing an operational performance baseline. So one way we can do this is using metrics. Metrics are numerical values that are collected at regular intervals and have a timestamp so when name value and other levels. Now they’re stored in a time series database which is suitable for alerting and fast detection of issues. It’s lightweight and allows for near real time alerting. By lightweight I mean doesn’t use up a huge number of resources. So let’s have a look at metrics in Metrics Explorer. So I can go down to the monitoring section, have a look at metrics.

So this is in a particular SQL database. So here I can select the scope. So in this particular case I’m selecting a database, but you can select other things as well. You can select the metric namespace. So in Azure, SQL database is only the one and you can select the metric. So I’m going to have a look at data space used, but notice there are quite a number of other ones. And then I can select the aggregation. So I can select Min Max average for other metrics. It may be some or count in a couple of videos. We’re going to just have a look and see what other metrics are available. So here we can see the metric data space used. Now at the moment it is over the last 24 hours.

We can change that. We can change it so that it says last 30 minutes all the way up to last 30 days. And also a custom period. We can also show the time in local or in Greenwich meantime or UTC coordinated Universal time. So let’s say 30 days. So here I’ve got the last 30 days and there’s only a maximum of 30 days that you can see. However, we can use these arrows to go backwards and forwards and we can go up to 93 days in the past if we so choose. So I’m going to change this back so that it is in the last 12 hours. Notice what’s happened, the start date and end date have now become a custom.

Now this time granularity. So how often does it do the aggregation? The aggregation in this case being max. So does it do it every five minutes? Every 30 minutes, every 12 hours, every month. So I’m just going to leave that to automatic. But if you’ve got a particular reason for changing it, say you want to see every day, but you want to see the max per hour or per 6 hours, you can do that. Now what else can you do here? Well, you can change the color of the line. Now you don’t do that with looking at the line itself, but looking at the legend, and there is a line next to the legend. If I click on that then I can change the color of the line, I can edit a title.

So here I’m going to just go to put the word database. I can split or filter a metric if it has a dimension. Now, that’s not applicable to Azure SQL database, we can add a second metric onto the same chart. For example, I will add not datespace used, but date space allocated. So you can see this is the amount of allocation. And again, if I wanted to, I could change the color. I could change the chart type. So at the moment, it’s a standard line chart. I could do an area chart, a bar chart, a scatter chart, or a grid if I so wished. There’s a few more settings over here in the dot. The dot I can move up, move down. If I’ve got more than one chart, I can add a new chart here.

So maybe I’ll add a new chart, which is data space use percentage, and then I could say, no, I want to move this bottom one up. So I can do that. I can delete it, I can clone it handy if I want to make changes, especially on a temporary basis. And I can have a look at chart settings as well, which gives me a fair number of the things that we’ve previously looked at. But in a pane, we can also change here the Y axis. I can also share this by downloading it to Excel or copying it into a link. So hopefully you can see from that how you can use this to create an operational performance spaceline. In the next video, we’ll have a look at some other ways we can do this.

2. 38. prepare an operational performance baseline – Other ways

Now other ways we can create an operational performance baseline is by using logs. So logs are events in the system which may contain nonnumerable data and may be structured or freeform and they may have a timestamp. So I can monitor the data loading in the last hour. Now, this uses a different language called koopa store ku sto. And we’re not going to go into the details of this, but you can see it does have some semblance with other languages such as R. And there is something that with your SQL training you can go, well, we got where we’ve got the summarize, so there are some ways we can learn it. We don’t need to for this particular course.

Now, other areas which could affect SQL Server performance include the hardware, compute and performance. So you can see we’re on Basic, so that will change things if you’ve got a virtual machine, the operating system, database applications and client applications can also affect SQL Server performance. So we’ve seen that we can use as your monitor to have a look at these things. So we can have a look at metrics and logs. So it could be that you need more CPU or input output resources if you’ve got a high requirement. So if you’ve got a high DTU percentage. So you can see here we’ve got DTU percentage, it might also be called a processor percentage if you’re using something else or a high IO percentage. Alternatively, make sure that your queries may need to be optimized.

Now you can also use TSQL. So we’ve already had a look in the previous video about Dmdb Resource Stats. So this reports on CPU I O and memory. Now, we can also use resource stats without the Dmdb. And so you can see the difference is that this reports on multiple databases. So it reports essentially on the server. So when I created a new database, it was starting to report on that. And you can see the skewed there is standard, whereas this just reports on the one particular database. We’ve also got DM user DB, resource governance and resource usage as well. So let’s just have a look at those in detail. So this is Sys Dmdb resource stats.

So it’s for CPU, I O and for memory. So you get a row for every 15 seconds for about the past hour. So it’s not good if you want to go back days, but if you want something detailed, four rows every minute for the past hour, then that’s one for you. Now Resource Stats gives you a similar thing, but this now gives it to you for the entirety of a server. And we’ve got related DMVs for Azure SQL managed instance and for Elastic pools, Sys Server Resource Stats and Sys Elastic Pool Resource Stats. So going to DM user DB resource governance. This shows the configuration or capacity settings actual in the current database or elastic pool. So you’ll notice that it’s a single database and not a single database every 15 seconds. So if I show you it in TSQL, it’s just returning the one raw. We’ve got things like minimum and maximum CPU and memory and log rate, and DTU and CPU limit. And then we’ve got Resource Usage. This provides an hourly summary of resource usage data for user databases in the current server. So if I run that here, you can see we’ve got our DP 300 database. And if I scroll down, we’ve got our metadata database that we generated and also this standard database that we used. And you can see it’s every hour or so. So it’s a single raw when it’s in use every hour.

Even if the database is idle, if it’s activated, if it actually is accessible, there will still be a single raw, and its usage would be shown at zero. Now, do bear in mind that this is actually a preview, and since they started using this, have actually discontinued one of the columns called Usage in seconds no longer there. So this now just shows you the storage in Megabytes. So the way to get operational performance baselines, you can use something like the Metrics Explorer. So you can create your chart from there. And you can also use Resource Stats, so you can see your CPU percentage, data, I O percentage, that sort of thing. You can also see what storage is being allocated. And you can also see not your current storage, but your historic storage going back for 90 days using Resource usage.

Comments
* The most recent comment are at the top

Interesting posts

Preparing for Juniper Networks JNCIA-Junos Exam: Key Topics and Mock Exam Resources

So, you’ve decided to take the plunge and go for the Juniper Networks JNCIA-Junos certification, huh? Great choice! This certification serves as a robust foundation for anyone aiming to build a career in networking. However, preparing for the exam can be a daunting task. The good news is that this guide covers the key topics… Read More »

Mastering Microsoft Azure Fundamentals AZ-900: Essential Study Materials

Ever wondered how businesses run these days without giant server rooms? That’s the magic of cloud computing, and Microsoft Azure is a leading cloud platform. Thinking about a career in this exciting field? If so, mastering the Microsoft Certified: Azure Fundamentals certification through passing the AZ-900 exam is the perfect starting point for you. This… Read More »

The Impact of Remote Work on IT Certification Exam Processes

With remote work becoming the new norm, it’s not just our daily routines that have changed but also how we tackle IT certification exams. Gone are the days of trekking to testing centers; now, your living room can double as an exam room. This shift has brought about some fascinating changes and challenges. Let’s dive… Read More »

IT Risk Management: CRISC Certification Exam Essentials

Do you ever feel like the IT world is moving at warp speed? New tech seems to pop up every day, leaving you wondering how to keep up and truly stand out in your field. Companies are increasingly concerned about online threats, data leaks, and meeting legal requirements. That’s where the CRISC (Certified in Risk… Read More »

The Ultimate Guide to Mastering Marketing Automation for Email Wizards

Hey there, email aficionados! Welcome to your new favorite read – the one that’s going to turbocharge your email marketing game. You’re about to dive into the captivating world of marketing automation, a place where efficiency meets effectiveness, letting you boost your campaigns without breaking a sweat. Get ready to discover how automation can not… Read More »

Master YouTube Marketing with These 10 Powerful Steps

Welcome to the dynamic world of YouTube marketing! Whether you’re a seasoned pro or just getting started, harnessing the power of YouTube can significantly boost your brand’s visibility and engagement. With over 2 billion monthly active users, YouTube offers a vast audience for your content. But how do you stand out in such a crowded… Read More »

sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |