Fix forwarded records and offline state in sqlserver input (#4730)
This commit is contained in:
parent
3349b53905
commit
adf2668c1d
|
@ -469,7 +469,7 @@ FROM (
|
|||
SUM( CASE WHEN state = 2 THEN 1 ELSE 0 END ) AS db_recovering,
|
||||
SUM( CASE WHEN state = 3 THEN 1 ELSE 0 END ) AS db_recoveryPending,
|
||||
SUM( CASE WHEN state = 4 THEN 1 ELSE 0 END ) AS db_suspect,
|
||||
SUM( CASE WHEN state = 10 THEN 1 ELSE 0 END ) AS db_offline
|
||||
SUM( CASE WHEN state = 6 or state = 10 THEN 1 ELSE 0 END ) AS db_offline
|
||||
FROM sys.databases
|
||||
) AS dbs
|
||||
CROSS APPLY (
|
||||
|
@ -571,7 +571,7 @@ WHERE (
|
|||
'Disk Write IO Throttled/sec',
|
||||
'Disk Write IO/sec',
|
||||
'Used memory (KB)',
|
||||
'Forwarded Recs/sec',
|
||||
'Forwarded Records/sec',
|
||||
'Background Writer pages/sec',
|
||||
'Percent Log Used'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue