diff --git a/test_agent/config/container/java_proxy/sql/777999444 b/test_agent/config/container/java_proxy/sql/777999444 new file mode 100644 index 0000000..1fddeaa --- /dev/null +++ b/test_agent/config/container/java_proxy/sql/777999444 @@ -0,0 +1,38 @@ +{ + "id" : "777999444", + "target" : { + "connection" : { + "ip" : "192.168.1.106", + "port" : "1433", + "ssl" : false, + "portType" : "tcp" + }, + "auth" : { + "url":"jdbc:sqlserver://192.168.1.106:1433;", + "id":"sa", + "pw":"qwe123" + } + }, + "schedule" : { + "interval" : "5" + }, + "crawler" : { + "name":"SQL", + "container":"java_proxy" + }, + "items" : [ + { + "keys" : [ + { + "metric" :"net.connection_count", + "key" : "Connections" + } + ], + "queryInfo" : { + "query": "select count('session_id') as 'connection_count' from sys.dm_exec_connections where session_id = @@SPID" + }, + "mappingInfo" : {} + } + + ] +} \ No newline at end of file