java proxy changed

This commit is contained in:
insanity@loafle.com 2017-05-17 19:38:18 +09:00
parent 52f73c3ce4
commit 48ca19f70c
5 changed files with 22 additions and 35 deletions

View File

@ -15,7 +15,7 @@
"interval" : "10"
},
"crawler" : {
"name":"Jmx",
"name":"JMX",
"container":"java_proxy"
},
"items" : [

View File

@ -2,16 +2,15 @@
"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" : {
@ -25,25 +24,12 @@
{
"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)"
"metric":"net.connection_count",
"key" : "connection_count"
}
],
"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"
"query" : "select count(pid) as connection_count from pg_catalog.pg_stat_activity where state <> 'idle'"
}
}
]

View File

@ -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

View File

@ -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/"