Add missing character replacement to sql_instance tag (#6610)
This commit is contained in:
parent
042fa53db8
commit
ba579819a0
|
@ -1305,7 +1305,7 @@ const sqlAzureDBResourceGovernance string = `
|
||||||
IF SERVERPROPERTY('EngineEdition') = 5 -- Is this Azure SQL DB?
|
IF SERVERPROPERTY('EngineEdition') = 5 -- Is this Azure SQL DB?
|
||||||
SELECT
|
SELECT
|
||||||
'sqlserver_db_resource_governance' AS [measurement],
|
'sqlserver_db_resource_governance' AS [measurement],
|
||||||
@@servername AS [sql_instance],
|
REPLACE(@@SERVERNAME,'\',':') AS [sql_instance],
|
||||||
DB_NAME() as [database_name],
|
DB_NAME() as [database_name],
|
||||||
slo_name,
|
slo_name,
|
||||||
dtu_limit,
|
dtu_limit,
|
||||||
|
@ -1344,7 +1344,7 @@ BEGIN
|
||||||
IF SERVERPROPERTY('EngineEdition') = 8 -- Is this Azure SQL Managed Instance?
|
IF SERVERPROPERTY('EngineEdition') = 8 -- Is this Azure SQL Managed Instance?
|
||||||
SELECT
|
SELECT
|
||||||
'sqlserver_instance_resource_governance' AS [measurement],
|
'sqlserver_instance_resource_governance' AS [measurement],
|
||||||
@@SERVERNAME AS [sql_instance],
|
REPLACE(@@SERVERNAME,'\',':') AS [sql_instance],
|
||||||
instance_cap_cpu,
|
instance_cap_cpu,
|
||||||
instance_max_log_rate,
|
instance_max_log_rate,
|
||||||
instance_max_worker_threads,
|
instance_max_worker_threads,
|
||||||
|
@ -1367,7 +1367,7 @@ SELECT blocking_session_id into #blockingSessions FROM sys.dm_exec_requests WHE
|
||||||
create index ix_blockingSessions_1 on #blockingSessions (blocking_session_id)
|
create index ix_blockingSessions_1 on #blockingSessions (blocking_session_id)
|
||||||
SELECT
|
SELECT
|
||||||
'sqlserver_requests' AS [measurement],
|
'sqlserver_requests' AS [measurement],
|
||||||
@@servername AS [sql_instance],
|
REPLACE(@@SERVERNAME,'\',':') AS [sql_instance],
|
||||||
DB_NAME() as [database_name],
|
DB_NAME() as [database_name],
|
||||||
r.session_id
|
r.session_id
|
||||||
, r.request_id
|
, r.request_id
|
||||||
|
|
Loading…
Reference in New Issue