From ca5d24c9a0cdc52a2b745622f3b7e6999b419212 Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Wed, 17 May 2017 21:24:19 +0900 Subject: [PATCH] mssql conf --- .../config/container/java_proxy/sql/777999444 | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 test_agent/config/container/java_proxy/sql/777999444 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