diff --git a/test_agent/config/container/java_proxy/jmx/747788 b/test_agent/config/container/java_proxy/jmx/747788 index 644eca1..19b7e68 100644 --- a/test_agent/config/container/java_proxy/jmx/747788 +++ b/test_agent/config/container/java_proxy/jmx/747788 @@ -15,7 +15,7 @@ "interval" : "10" }, "crawler" : { - "name":"Jmx", + "name":"JMX", "container":"java_proxy" }, "items" : [ diff --git a/test_agent/config/container/java_proxy/sql/989238744 b/test_agent/config/container/java_proxy/sql/989238744 index f28b877..ac4851a 100644 --- a/test_agent/config/container/java_proxy/sql/989238744 +++ b/test_agent/config/container/java_proxy/sql/989238744 @@ -2,17 +2,16 @@ "id" : "989238744", "target" : { "connection" : { - "ip" : "192.168.1.215", - "port" : "6379", + "ip" : "192.168.1.107", + "port" : "5432", "ssl" : false, "portType" : "tcp" }, "auth" : { - "url":"jdbc:sqlserver://192.168.1.106:1433;", - "id":"sa", - "pw":"qwe123", - "query" : "select * from master.dbo.sysprocesses" - } + "url":"jdbc:postgresql://192.168.1.107:5432/postgres", + "id":"postgres", + "pw":"!@#$qwer1234" + } }, "schedule" : { "interval" : "10" @@ -22,29 +21,16 @@ "container":"java_proxy" }, "items" : [ - { - "keys" : [ - { - "metric" : "object[$0].db[$1].datafile_size", - "key" : "Data File(s) Size (KB)" - }, - { - "metric" : "object[$0].db[$1].logfile_size", - "key" : "Log File(s) Size (KB)" - } - ], - "queryInfo" : { - "query": "select object_name,instance_name, counter_name, cntr_value from sys.dm_os_performance_counters where ( counter_name = 'Data File(s) Size (KB)' or counter_name = 'Log File(s) Size (KB)' ) AND object_name = 'SQLServer:Databases'", - "extend" : { - "test":"test" - } - }, - "mappingInfo" : { - "parseDirection" : "row", - "arrayColumns" : [ "object_name","instance_name"], - "keyColumns" : ["counter_name"], - "valueColumn" : "cntr_value" - } - } - ] + { + "keys" : [ + { + "metric":"net.connection_count", + "key" : "connection_count" + } + ], + "queryInfo":{ + "query" : "select count(pid) as connection_count from pg_catalog.pg_stat_activity where state <> 'idle'" + } + } + ] } \ No newline at end of file diff --git a/test_agent/container/java_proxy/grpc_java.jar b/test_agent/container/java_proxy/grpc_java.jar index a93215a..f0c8c65 100644 Binary files a/test_agent/container/java_proxy/grpc_java.jar and b/test_agent/container/java_proxy/grpc_java.jar differ diff --git a/test_agent/container/java_proxy/start b/test_agent/container/java_proxy/start index 27e40c5..010d06f 100755 --- a/test_agent/container/java_proxy/start +++ b/test_agent/container/java_proxy/start @@ -1,3 +1,4 @@ #!/bin/bash script_dir=$(cd "$(dirname "$0")" && pwd) -java -jar $script_dir'/grpc_java.jar' $1 +#java -jar $script_dir'/grpc_java.jar' $1 +java -cp $script_dir'/grpc_java.jar' com.loafle.overflow.Server $1 \ No newline at end of file diff --git a/test_agent/global.yaml b/test_agent/global.yaml index 8251158..3c33324 100644 --- a/test_agent/global.yaml +++ b/test_agent/global.yaml @@ -3,7 +3,7 @@ central: port: 443 logPath: "./bin/log.xml" paths: - rootFolder : "/home/geek/develop/gopath/src/loafle.com/overflow/config_manager_go/test_agent/" + rootFolder : "/home/insanity/Develop/gopath/src/loafle.com/overflow/config_manager_go/test_agent/" configFolder : "config/" binaryFolder : "container/" pidFolder : "pids/"