I suggest you start here:
https://www.brentozar.com/archive/2006/12/dba-101-using-perfmon-for-sql-performance-tuning/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello!
i want to monitor SQL Server in SQL Server (without using Perfmon), so i'll be using sys.dm_os_performance_counters. There's a lot of counters returned by this DMV.
First problem is i don't know which one are important.
Second problem is i don't know if it is enough to monitor SQL Server (SQL Server system included: CPU, Network, System,Disk,Memory,etc.) or do i need other DMVs
Third problem is : by listing counters in one CTE, i don't know what values to put on instance name.
Can you guys help me?
Thanks
I suggest you start here:
https://www.brentozar.com/archive/2006/12/dba-101-using-perfmon-for-sql-performance-tuning/
But i want to add other counters ... I also want to monitor SQL Server OS... Process, processor, system, logicaldisk, network from SQL Server.
SQL Server knows only it's own performance counter, not others.
How could be SQL Server aware of e.g. Exchange Server performance counter?
Use PerfMon or other tools to monitor performance counter.
Hi @Miiimy7 ,
You can use sys.dm_os_performance_counters DMV collect counter information that you would receive from PerfMon for the various SQL Server counters. Let me stress that: this is for the various SQL Server counters. You will not be able to receive counter information from outside the SQL Server stack from this DMV. However for a quick and simple query to return information about your SQL Server instance's performance this is a great tool.
Refer to the blog SQL Server Performance Counter DMV sys.dm_os_performance_counters to get more information.
As Olaf mentioned, performance monitor is a better tool for your requirement.
If the response is helpful, please click "Accept Answer" and upvote it, thank you.