You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot sql performance counters which are displayed in raw values by default. For example Batch Requests/sec. If you query them via Invoke-IcingaCheckMSSQLPerfCounter which infact uses the follwoing sql query the output is a raw value
SELECT
RTRIM(object_name) as object_name,
RTRIM(counter_name) as counter_name,
RTRIM(instance_name) as instance_name,
RTRIM(cntr_value) as cntr_value,
RTRIM(cntr_type) as cntr_type
FROM sys.dm_os_performance_counters
WHERE (object_name LIKE '%:SQL Statistics%' AND counter_name = 'Batch Requests/sec');
It would be greate to implement some logic to get the cooked value for those performance counters. Maybe it is possible to fetch the cntr_type and if it is 272696576 (=PERF_COUNTER_BULK_COUNT) calculate the cooked value.
The text was updated successfully, but these errors were encountered:
There are a lot sql performance counters which are displayed in raw values by default. For example Batch Requests/sec. If you query them via Invoke-IcingaCheckMSSQLPerfCounter which infact uses the follwoing sql query the output is a raw value
It would be greate to implement some logic to get the cooked value for those performance counters. Maybe it is possible to fetch the cntr_type and if it is 272696576 (=PERF_COUNTER_BULK_COUNT) calculate the cooked value.
The text was updated successfully, but these errors were encountered: