Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #336

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Dev #336

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sp_HealthParser/sp_HealthParser.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GO
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝


Copyright 2023 Darling Data, LLC
Copyright 2024 Darling Data, LLC
https://www.erikdarlingdata.com/

For support, head over to GitHub:
Expand Down Expand Up @@ -64,8 +64,8 @@ BEGIN
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

SELECT
@version = '1.12',
@version_date = '20231201';
@version = '1.15',
@version_date = '20240101';

IF @help = 1
BEGIN
Expand Down
6 changes: 3 additions & 3 deletions sp_HumanEvents/sp_HumanEvents.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GO
███████╗ ╚████╔╝ ███████╗██║ ╚████║ ██║ ███████║
╚══════╝ ╚═══╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝

Copyright 2023 Darling Data, LLC
Copyright 2024 Darling Data, LLC
https://www.erikdarlingdata.com/

For usage and licensing details, run:
Expand Down Expand Up @@ -87,8 +87,8 @@ SET XACT_ABORT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

SELECT
@version = '5.12',
@version_date = '20231201';
@version = '5.13',
@version_date = '20240101';

IF @help = 1
BEGIN
Expand Down
6 changes: 3 additions & 3 deletions sp_HumanEvents/sp_HumanEventsBlockViewer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GO
╚████╔╝ ██║███████╗╚███╔███╔╝███████╗██║ ██║
╚═══╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝

Copyright 2023 Darling Data, LLC
Copyright 2024 Darling Data, LLC
https://www.erikdarlingdata.com/

For usage and licensing details, run:
Expand Down Expand Up @@ -82,8 +82,8 @@ SET XACT_ABORT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

SELECT
@version = '3.12',
@version_date = '20231201';
@version = '3.13',
@version_date = '20240101';

IF @help = 1
BEGIN
Expand Down
9 changes: 5 additions & 4 deletions sp_LogHunter/sp_LogHunter.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GO
██║ ██║╚██████╔╝██║ ╚████║ ██║ ███████╗██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝╚═╝ ╚═╝

Copyright 2023 Darling Data, LLC
Copyright 2024 Darling Data, LLC
https://www.erikdarlingdata.com/

For usage and licensing details, run:
Expand Down Expand Up @@ -72,8 +72,8 @@ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

BEGIN
SELECT
@version = '1.12',
@version_date = '20231201';
@version = '1.13',
@version_date = '20240101';

IF @help = 1
BEGIN
Expand Down Expand Up @@ -641,8 +641,9 @@ BEGIN
OR el.text LIKE N'Starting up database%'
OR el.text LIKE N'Buffer pool extension is already disabled%'
OR el.text LIKE N'Buffer Pool: Allocating % bytes for % hashPages.'
OR el.text LIKE N'%Severity: 1[0-8]%'
OR el.text LIKE N'The client was unable to reuse a session with%'
OR el.text LIKE N'SSPI%'
OR el.text LIKE N'%Severity: 1[0-8]%'
OR el.text IN
(
N'The Database Mirroring endpoint is in disabled or stopped state.',
Expand Down
38 changes: 21 additions & 17 deletions sp_PressureDetector/sp_PressureDetector.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GO
██████╔╝███████╗ ██║ ███████╗╚██████╗ ██║ ╚██████╔╝██║ ██║
╚═════╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝

Copyright 2023 Darling Data, LLC
Copyright 2024 Darling Data, LLC
https://www.erikdarlingdata.com/

For usage and licensing details, run:
Expand Down Expand Up @@ -69,8 +69,8 @@ SET XACT_ABORT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

SELECT
@version = '4.12',
@version_date = '20231201';
@version = '4.13',
@version_date = '20240101';


IF @help = 1
Expand Down Expand Up @@ -860,8 +860,8 @@ OPTION(MAXDOP 1, RECOMPILE);',
scheduler_total_count =
(
SELECT
i.cpu_count
FROM sys.dm_os_sys_info AS i
osi.cpu_count
FROM sys.dm_os_sys_info AS osi
)
FROM sys.master_files AS mf
WHERE mf.database_id = 2
Expand Down Expand Up @@ -1152,8 +1152,8 @@ OPTION(MAXDOP 1, RECOMPILE);',
BEGIN
SELECT
@total_physical_memory_gb =
SUM(dosi.committed_target_kb / 1024. / 1024.)
FROM sys.dm_os_sys_info dosi;
SUM(osi.committed_target_kb / 1024. / 1024.)
FROM sys.dm_os_sys_info osi;
END;

/*Checking for low memory indicators*/
Expand All @@ -1170,7 +1170,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
DATEADD
(
SECOND,
(t.timestamp - inf.ms_ticks) / 1000,
(t.timestamp - osi.ms_ticks) / 1000,
SYSDATETIME()
)
),
Expand All @@ -1184,7 +1184,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
t.record.value('(/Record/MemoryRecord/AvailablePhysicalMemory)[1]', 'bigint') / 1024 / 1024,
virtual_memory_available_gb =
t.record.value('(/Record/MemoryRecord/AvailableVirtualAddressSpace)[1]', 'bigint') / 1024 / 1024
FROM sys.dm_os_sys_info AS inf
FROM sys.dm_os_sys_info AS osi
CROSS JOIN
(
SELECT
Expand All @@ -1194,7 +1194,11 @@ OPTION(MAXDOP 1, RECOMPILE);',
FROM sys.dm_os_ring_buffers AS dorb
WHERE dorb.ring_buffer_type = N'RING_BUFFER_RESOURCE_MONITOR'
) AS t
WHERE t.record.exist('(Record/ResourceMonitor/Notification[. = "RESOURCE_MEMPHYSICAL_LOW"])') = 1
WHERE
(
t.record.exist('(Record/ResourceMonitor/Notification[. = "RESOURCE_MEMPHYSICAL_LOW"])') = 1
OR t.record.exist('(Record/ResourceMonitor/Notification[. = "RESOURCE_MEMVIRTUAL_LOW"])') = 1
)
AND
(
t.record.exist('(Record/ResourceMonitor/IndicatorsProcess[. > 0])') = 1
Expand Down Expand Up @@ -1245,8 +1249,8 @@ OPTION(MAXDOP 1, RECOMPILE);',
memory_model =
(
SELECT
inf.sql_memory_model_desc
FROM sys.dm_os_sys_info AS inf
osi.sql_memory_model_desc
FROM sys.dm_os_sys_info AS osi
),
target_memory_gb =
CONVERT
Expand Down Expand Up @@ -1598,7 +1602,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
DATEADD
(
SECOND,
(t.timestamp - inf.ms_ticks) / 1000,
(t.timestamp - osi.ms_ticks) / 1000,
SYSDATETIME()
)
),
Expand All @@ -1609,7 +1613,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
- t.record.value('(Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]','int')),
total_cpu_utilization =
(100 - t.record.value('(Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]', 'int'))
FROM sys.dm_os_sys_info AS inf
FROM sys.dm_os_sys_info AS osi
CROSS JOIN
(
SELECT
Expand Down Expand Up @@ -1723,13 +1727,13 @@ OPTION(MAXDOP 1, RECOMPILE);',
SUM
(
CASE
WHEN r.status = N'runnable'
WHEN der.status = N'runnable'
THEN 1
ELSE 0
END
)
FROM sys.dm_exec_requests AS r
WHERE r.session_id > 50
FROM sys.dm_exec_requests AS der
WHERE der.session_id > 50
) AS x
) AS y
WHERE y.runnable_pct >= 10
Expand Down
Loading