mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 02:48:30 -05:00
Add details for each chart and update README (#1341)
* add details for each chart and update readme * update README
This commit is contained in:
@@ -6,6 +6,11 @@ Welcome to **sp_whoisactive** for SQL Operations Studio! Sp_whoisactive is a pro
|
||||
|
||||
<img src="https://github.com/Microsoft/sqlopsstudio/raw/master/samples/sp_whoIsActive/images/insights_section.png" alt="insights" style="width:480px;"/>
|
||||
|
||||
Details:
|
||||
|
||||
<img src="https://github.com/Microsoft/sqlopsstudio/raw/master/samples/sp_whoIsActive/images/insights_details_section.png" alt="insights" style="width:240px;"/>
|
||||
|
||||
|
||||
## Why use sp_whoisactive?
|
||||
Here are some quick facts on Who is Active from [Adam Machanic’s blog]:
|
||||
|
||||
@@ -15,9 +20,6 @@ Here are some quick facts on Who is Active from [Adam Machanic’s blog]:
|
||||
* Who is Active is **compatible with all versions of SQL Server after SQL Server 2005 RTM**. It does require that the host database (generally master) is not set for SQL Server 2000 compatibility mode
|
||||
|
||||
## Documentation:
|
||||
|
||||
<img src="https://github.com/Microsoft/sqlopsstudio/raw/master/samples/sp_whoIsActive/images/documentation_section.png" alt="documentation" style="width:480px;"/>
|
||||
|
||||
If you haven't installed sp_whoisactive in your server, you can use the "Install sp_whoisactive" task to create the procedure.
|
||||
|
||||
See [sp_whoisactive Documentation] for more infomation.
|
||||
@@ -34,3 +36,8 @@ See [sp_whoisactive extension project] in the SQL Operations Studio for the exte
|
||||
|
||||
## Contributions and "thank you"
|
||||
Special thank to Adam Machanic for partnering with us and make this sp_whoisactive extension possible.
|
||||
|
||||
## What's new in Server Reports v1.1?
|
||||
* Changed CPU usage, CPU delta, memory usage, memory delta to show only top 10 data
|
||||
* Added details option on each chart to display details of data entries
|
||||
* Improved "Get plans" and "Find leader of block" tasks. The tasks will open new editor, configure current dashboard connection, and run the query.
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB |
BIN
samples/sp_whoIsActive/images/insights_details_section.png
Normal file
BIN
samples/sp_whoIsActive/images/insights_details_section.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 34 KiB |
@@ -78,10 +78,18 @@
|
||||
"legendPosition": "none",
|
||||
"labelFirstColumn": false,
|
||||
"columnsAsLabels": true,
|
||||
"showTopNData": 5
|
||||
"showTopNData": 10
|
||||
}
|
||||
},
|
||||
"queryFile": "./out/src/sql/cpuUsage.sql"
|
||||
"queryFile": "./out/src/sql/cpuUsage.sql",
|
||||
"details": {
|
||||
"queryFile": "./out/src/sql/cpuUsage_details.sql",
|
||||
"label": {
|
||||
"column": "session_id",
|
||||
"state": []
|
||||
},
|
||||
"value": "CPU"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -94,10 +102,18 @@
|
||||
"legendPosition": "none",
|
||||
"labelFirstColumn": false,
|
||||
"columnsAsLabels": true,
|
||||
"showTopNData": 5
|
||||
"showTopNData": 10
|
||||
}
|
||||
},
|
||||
"queryFile": "./out/src/sql/cpuDelta.sql"
|
||||
"queryFile": "./out/src/sql/cpuDelta.sql",
|
||||
"details": {
|
||||
"queryFile": "./out/src/sql/cpuDelta_details.sql",
|
||||
"label": {
|
||||
"column": "session_id",
|
||||
"state": []
|
||||
},
|
||||
"value": "CPU_delta"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -110,10 +126,18 @@
|
||||
"legendPosition": "none",
|
||||
"labelFirstColumn": false,
|
||||
"columnsAsLabels": true,
|
||||
"showTopNData": 5
|
||||
"showTopNData": 10
|
||||
}
|
||||
},
|
||||
"queryFile": "./out/src/sql/memoryUsage.sql"
|
||||
"queryFile": "./out/src/sql/memoryUsage.sql",
|
||||
"details": {
|
||||
"queryFile": "./out/src/sql/memoryUsage_details.sql",
|
||||
"label": {
|
||||
"column": "session_id",
|
||||
"state": []
|
||||
},
|
||||
"value": "used_memory"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -126,10 +150,18 @@
|
||||
"legendPosition": "none",
|
||||
"labelFirstColumn": false,
|
||||
"columnsAsLabels": true,
|
||||
"showTopNData": 5
|
||||
"showTopNData": 10
|
||||
}
|
||||
},
|
||||
"queryFile": "./out/src/sql/memoryDelta.sql"
|
||||
"queryFile": "./out/src/sql/memoryDelta.sql",
|
||||
"details": {
|
||||
"queryFile": "./out/src/sql/memoryDelta_details.sql",
|
||||
"label": {
|
||||
"column": "session_id",
|
||||
"state": []
|
||||
},
|
||||
"value": "used_memory_delta"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -159,7 +191,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Top 5 CPU Usage",
|
||||
"name": "Top 10 CPU Usage",
|
||||
"gridItemConfig": {
|
||||
"sizex": 2,
|
||||
"sizey": 1
|
||||
@@ -169,7 +201,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Top 5 CPU Delta",
|
||||
"name": "Top 10 CPU Delta",
|
||||
"gridItemConfig": {
|
||||
"sizex": 2,
|
||||
"sizey": 1
|
||||
@@ -179,7 +211,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Top 5 Memory Usage",
|
||||
"name": "Top 10 Memory Usage",
|
||||
"gridItemConfig": {
|
||||
"sizex": 2,
|
||||
"sizey": 1
|
||||
@@ -189,7 +221,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Top 5 Memory Delta",
|
||||
"name": "Top 10 Memory Delta",
|
||||
"gridItemConfig": {
|
||||
"sizex": 2,
|
||||
"sizey": 1
|
||||
@@ -197,16 +229,6 @@
|
||||
"widget": {
|
||||
"sp_whoisactive-memory-delta": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Blocking Sessions",
|
||||
"gridItemConfig": {
|
||||
"sizex": 2,
|
||||
"sizey": 1
|
||||
},
|
||||
"widget": {
|
||||
"sp_whoisactive-blocking_sessions": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
8
samples/sp_whoIsActive/src/sql/cpuDelta_details.sql
Normal file
8
samples/sp_whoIsActive/src/sql/cpuDelta_details.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_WhoIsActive')
|
||||
EXEC sp_WhoIsActive
|
||||
@delta_interval = 1,
|
||||
@get_plans = 1,
|
||||
@sort_order = '[CPU_delta] DESC'
|
||||
ELSE
|
||||
SELECT 0;
|
||||
GO
|
||||
7
samples/sp_whoIsActive/src/sql/cpuUsage_details.sql
Normal file
7
samples/sp_whoIsActive/src/sql/cpuUsage_details.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_WhoIsActive')
|
||||
EXEC sp_WhoIsActive
|
||||
@get_plans = 1,
|
||||
@sort_order = '[CPU] DESC'
|
||||
ELSE
|
||||
SELECT 0;
|
||||
GO
|
||||
8
samples/sp_whoIsActive/src/sql/memoryDelta_details.sql
Normal file
8
samples/sp_whoIsActive/src/sql/memoryDelta_details.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_WhoIsActive')
|
||||
EXEC sp_WhoIsActive
|
||||
@delta_interval = 1,
|
||||
@get_plans = 1,
|
||||
@sort_order = '[used_memory_delta] DESC'
|
||||
ELSE
|
||||
SELECT 0;
|
||||
GO
|
||||
7
samples/sp_whoIsActive/src/sql/memoryUsage_details.sql
Normal file
7
samples/sp_whoIsActive/src/sql/memoryUsage_details.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_WhoIsActive')
|
||||
EXEC sp_WhoIsActive
|
||||
@get_plans = 1,
|
||||
@sort_order = '[used_memory] DESC'
|
||||
ELSE
|
||||
SELECT 0;
|
||||
GO
|
||||
Reference in New Issue
Block a user