Trim instance tag in the sqlserver performance counters query (#7351)
This commit is contained in:
parent
2d61669cfd
commit
82c9f0f7f8
|
@ -629,9 +629,9 @@ SET @SQL = N'SELECT DISTINCT
|
|||
WHEN RTRIM(object_name) LIKE ''%:Availability Replica''
|
||||
AND TRY_CONVERT(uniqueidentifier, spi.instance_name) IS NOT NULL -- for cloud only
|
||||
THEN d.name + RTRIM(SUBSTRING(spi.instance_name, 37, LEN(spi.instance_name)))
|
||||
ELSE spi.instance_name
|
||||
ELSE RTRIM(spi.instance_name)
|
||||
END AS instance_name,'
|
||||
ELSE 'spi.instance_name as instance_name, '
|
||||
ELSE 'RTRIM(spi.instance_name) as instance_name, '
|
||||
END
|
||||
+
|
||||
'CAST(spi.cntr_value AS BIGINT) AS cntr_value,
|
||||
|
|
Loading…
Reference in New Issue