From 9c9c08544c1d585190aa5da0e3afc855d8150a81 Mon Sep 17 00:00:00 2001 From: Denzil Ribeiro Date: Mon, 10 Aug 2020 15:59:56 +0000 Subject: [PATCH] Added New counter - Lock Timeouts (timeout>0)/sec Incorporating changes from - https://github.com/influxdata/telegraf/pull/7808 --- plugins/inputs/sqlserver/azuresqlqueries.go | 1 + plugins/inputs/sqlserver/sqlqueriesV2.go | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/inputs/sqlserver/azuresqlqueries.go b/plugins/inputs/sqlserver/azuresqlqueries.go index 0651571c202ac..8eccebecc96b6 100644 --- a/plugins/inputs/sqlserver/azuresqlqueries.go +++ b/plugins/inputs/sqlserver/azuresqlqueries.go @@ -456,6 +456,7 @@ WITH PerfCounters AS instance_name IN ('_Total') AND counter_name IN ( 'Lock Timeouts/sec', + 'Lock Timeouts (timeout > 0)/sec', 'Number of Deadlocks/sec', 'Lock Waits/sec', 'Latch Waits/sec' diff --git a/plugins/inputs/sqlserver/sqlqueriesV2.go b/plugins/inputs/sqlserver/sqlqueriesV2.go index 73e5297e0218c..9101f9feb836e 100644 --- a/plugins/inputs/sqlserver/sqlqueriesV2.go +++ b/plugins/inputs/sqlserver/sqlqueriesV2.go @@ -538,6 +538,7 @@ SET @SqlStatement = @SqlStatement + CAST(N' WHERE ( instance_name IN (''_Total'') AND counter_name IN ( ''Lock Timeouts/sec'', + ''Lock Timeouts (timeout > 0)/sec'', ''Number of Deadlocks/sec'', ''Lock Waits/sec'', ''Latch Waits/sec''