-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more explicit class naming * fixes #198 * By default, NULL check values should be raising warnings, not errors. This behavior can be configured by a user. * sql instance removal improvement * improvements to SqlWatchImporter and corresponding tables. introduction of date_updated to speed up data import * ssis validation * PBI maintenance update
- Loading branch information
1 parent
4a626cb
commit 804d112
Showing
38 changed files
with
1,531 additions
and
1,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+7.19 MB
...Power BI/SQLWATCH Dashboard 20200628.pbix → ...Power BI/SQLWATCH Dashboard 20200819.pbix
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
SqlWatch.Monitor/Project.SqlWatch.Database/Scripts/Pre-Deployment/SetDacVersion.sql
Binary file not shown.
25 changes: 15 additions & 10 deletions
25
...nitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_internal_add_memory_clerk.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_add_memory_clerk] | ||
as | ||
|
||
insert into [dbo].[sqlwatch_meta_memory_clerk] ([sql_instance], [clerk_name]) | ||
select [sql_instance]=@@SERVERNAME, [type] | ||
from ( | ||
select distinct [type] | ||
;merge [dbo].[sqlwatch_meta_memory_clerk] as target | ||
using ( | ||
select distinct | ||
[clerk_name] = [type] | ||
from sys.dm_os_memory_clerks s | ||
union all | ||
select 'OTHER' | ||
) s | ||
left join [dbo].[sqlwatch_meta_memory_clerk] d | ||
on d.[clerk_name] = s.[type] collate database_default | ||
and d.sql_instance = @@SERVERNAME | ||
where d.[clerk_name] is null | ||
select [clerk_name] = 'OTHER' | ||
) as source | ||
on target.[clerk_name] = source.[clerk_name] collate database_default | ||
and target.[sql_instance] = @@SERVERNAME | ||
|
||
--when matched then | ||
-- update set date_last_seen = getutcdate() | ||
|
||
when not matched then | ||
insert ([sql_instance], [clerk_name]) | ||
values (@@SERVERNAME, source.[clerk_name]); |
43 changes: 25 additions & 18 deletions
43
...roject.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_internal_add_performance_counter.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_add_performance_counter] | ||
as | ||
|
||
insert into [dbo].[sqlwatch_meta_performance_counter] ([sql_instance],[object_name],[counter_name],[cntr_type]) | ||
select distinct @@SERVERNAME, rtrim(pc.[object_name]), rtrim(pc.[counter_name]), pc.[cntr_type] | ||
from sys.dm_os_performance_counters pc | ||
left join [dbo].[sqlwatch_meta_performance_counter] mc | ||
on rtrim(pc.[object_name]) = mc.[object_name] collate database_default | ||
and rtrim(pc.[counter_name]) = mc.[counter_name] collate database_default | ||
and mc.[sql_instance] = @@SERVERNAME | ||
where mc.counter_name is null | ||
|
||
insert into [dbo].[sqlwatch_meta_performance_counter] ([sql_instance],[object_name],[counter_name],[cntr_type]) | ||
select pc.[sql_instance],pc.[object_name],pc.[counter_name],pc.[cntr_type] | ||
from ( | ||
select [sql_instance] = @@SERVERNAME, [object_name] = 'win32_perfformatteddata_perfos_processor', [counter_name] = 'Processor Time %', [cntr_type] = 65792 | ||
) pc | ||
left join [dbo].[sqlwatch_meta_performance_counter] mc | ||
on rtrim(pc.[object_name]) = mc.[object_name] collate database_default | ||
and rtrim(pc.[counter_name]) = mc.[counter_name] collate database_default | ||
and mc.[sql_instance] = @@SERVERNAME | ||
where mc.counter_name is null | ||
;merge [dbo].[sqlwatch_meta_performance_counter] as target | ||
using ( | ||
select distinct | ||
[sql_instance] = @@SERVERNAME | ||
, [object_name] = rtrim(pc.[object_name]) | ||
, [counter_name] = rtrim(pc.[counter_name]) | ||
, [cntr_type] = pc.[cntr_type] | ||
from sys.dm_os_performance_counters pc | ||
union all | ||
select | ||
[sql_instance] = @@SERVERNAME | ||
, [object_name] = 'win32_perfformatteddata_perfos_processor' | ||
, [counter_name] = 'Processor Time %' | ||
, [cntr_type] = 65792 | ||
) as source | ||
on target.sql_instance = source.sql_instance collate database_default | ||
and target.object_name = source.object_name collate database_default | ||
and target.counter_name = source.counter_name collate database_default | ||
|
||
--when matched then | ||
-- update set date_last_seen = getutcdate() | ||
|
||
when not matched then | ||
insert ([sql_instance],[object_name],[counter_name],[cntr_type]) | ||
values (source.[sql_instance],source.[object_name],source.[counter_name],source.[cntr_type]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 11 additions & 7 deletions
18
....Monitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_internal_add_wait_type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_add_wait_type] | ||
AS | ||
|
||
|
||
;merge [dbo].[sqlwatch_meta_wait_stats] as target | ||
using sys.dm_os_wait_stats as source | ||
on target.[wait_type] = source.[wait_type] collate database_default | ||
and target.[sql_instance] = @@SERVERNAME | ||
|
||
insert into [dbo].[sqlwatch_meta_wait_stats] ([sql_instance], [wait_type]) | ||
select distinct @@SERVERNAME, dm.[wait_type] | ||
from sys.dm_os_wait_stats dm | ||
left join [dbo].[sqlwatch_meta_wait_stats] ws | ||
on ws.[sql_instance] = @@SERVERNAME | ||
and ws.[wait_type] = dm.[wait_type] collate database_default | ||
where ws.[wait_type] is null | ||
--when matched then | ||
-- update set [date_last_seen] = getutcdate() | ||
|
||
when not matched then | ||
insert ([sql_instance], [wait_type]) | ||
values (@@SERVERNAME, source.[wait_type]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.