Skip to content

Commit 3ebbd70

Browse files
committed
Added scripts for Graphana Dashboard
Added scripts for Graphana Dashboard
1 parent ee668b6 commit 3ebbd70

35 files changed

+6093
-54
lines changed
41.5 KB
Binary file not shown.

Baselining/Baseline with [sp_BlitzFirst].sql

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
-- https://www.brentozar.com/askbrent/
22

33
-- Collect Data using below code
4-
EXEC DBA..sp_BlitzFirst
5-
@OutputDatabaseName = 'DBA',
6-
@OutputSchemaName = 'dbo',
7-
@OutputTableName = 'BlitzFirst',
8-
@OutputTableNameFileStats = 'BlitzFirst_FileStats',
9-
@OutputTableNamePerfmonStats = 'BlitzFirst_PerfmonStats',
10-
@OutputTableNameWaitStats = 'BlitzFirst_WaitStats',
11-
@OutputTableNameBlitzCache = 'BlitzCache',
12-
@OutputTableRetentionDays = 90;
4+
EXEC master..sp_BlitzFirst
5+
@OutputDatabaseName = 'DBA',
6+
@OutputSchemaName = 'dbo',
7+
@OutputTableName = 'BlitzFirst', -- the quick diagnosis result set goes here
8+
@OutputTableNameFileStats = 'BlitzFirst_FileStats',
9+
@OutputTableNamePerfmonStats = 'BlitzFirst_PerfmonStats',
10+
@OutputTableNameWaitStats = 'BlitzFirst_WaitStats',
11+
@OutputTableNameBlitzCache = 'BlitzCache',
12+
@OutputTableNameBlitzWho = 'BlitzWho',
13+
@OutputTableRetentionDays = 90;
14+
15+
EXEC master..sp_BlitzFirst @Help = 1
1316

1417
-- Fetch stats As of Date
1518
-- sp_BlitzFirst will look in the output table for all results within 15 minutes of that time, and return them in chronological order.

Baselining/Baselining.ssmssqlproj

+14-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Items>
44
<LogicalFolder Name="Connections" Type="2" Sorted="true">
55
<Items>
6-
<ConnectionNode Name="(local):CORPORATE\adwivedi">
6+
<ConnectionNode Name="(local):MSI\ajayd">
77
<Created>2019-09-13T15:00:19.1557527+05:30</Created>
88
<Type>SQL</Type>
99
<Server>(local)</Server>
@@ -15,7 +15,7 @@
1515
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
1616
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
1717
</ConnectionNode>
18-
<ConnectionNode Name="LOCALHOST:CORPORATE\adwivedi">
18+
<ConnectionNode Name="LOCALHOST:MSI\ajayd">
1919
<Created>2020-03-09T23:04:01.1172366+05:30</Created>
2020
<Type>SQL</Type>
2121
<Server>LOCALHOST</Server>
@@ -67,6 +67,12 @@
6767
<AssociatedConnUserName />
6868
<FullPath>DBA - Start DataCollector.sql</FullPath>
6969
</FileNode>
70+
<FileNode Name="dbo.sqlg_parseRelogOutput.sql">
71+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
72+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
73+
<AssociatedConnUserName />
74+
<FullPath>dbo.sqlg_parseRelogOutput.sql</FullPath>
75+
</FileNode>
7076
<FileNode Name="Export-Excel.sql">
7177
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:LOCALHOST:True</AssociatedConnectionMoniker>
7278
<AssociatedConnSrvName>LOCALHOST</AssociatedConnSrvName>
@@ -139,6 +145,12 @@
139145
<AssociatedConnUserName />
140146
<FullPath>PerfMon-Dbatools-DataCollection.sql</FullPath>
141147
</FileNode>
148+
<FileNode Name="SCH-ExtendedEvents-Queries.sql">
149+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
150+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
151+
<AssociatedConnUserName />
152+
<FullPath>SCH-ExtendedEvents-Queries.sql</FullPath>
153+
</FileNode>
142154
<FileNode Name="SELECT permission to All Users.sql">
143155
<AssociatedConnectionMoniker />
144156
<AssociatedConnSrvName />

0 commit comments

Comments
 (0)