java proxy changed
This commit is contained in:
parent
52f73c3ce4
commit
48ca19f70c
|
@ -15,7 +15,7 @@
|
||||||
"interval" : "10"
|
"interval" : "10"
|
||||||
},
|
},
|
||||||
"crawler" : {
|
"crawler" : {
|
||||||
"name":"Jmx",
|
"name":"JMX",
|
||||||
"container":"java_proxy"
|
"container":"java_proxy"
|
||||||
},
|
},
|
||||||
"items" : [
|
"items" : [
|
||||||
|
|
|
@ -2,17 +2,16 @@
|
||||||
"id" : "989238744",
|
"id" : "989238744",
|
||||||
"target" : {
|
"target" : {
|
||||||
"connection" : {
|
"connection" : {
|
||||||
"ip" : "192.168.1.215",
|
"ip" : "192.168.1.107",
|
||||||
"port" : "6379",
|
"port" : "5432",
|
||||||
"ssl" : false,
|
"ssl" : false,
|
||||||
"portType" : "tcp"
|
"portType" : "tcp"
|
||||||
},
|
},
|
||||||
"auth" : {
|
"auth" : {
|
||||||
"url":"jdbc:sqlserver://192.168.1.106:1433;",
|
"url":"jdbc:postgresql://192.168.1.107:5432/postgres",
|
||||||
"id":"sa",
|
"id":"postgres",
|
||||||
"pw":"qwe123",
|
"pw":"!@#$qwer1234"
|
||||||
"query" : "select * from master.dbo.sysprocesses"
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"schedule" : {
|
"schedule" : {
|
||||||
"interval" : "10"
|
"interval" : "10"
|
||||||
|
@ -22,29 +21,16 @@
|
||||||
"container":"java_proxy"
|
"container":"java_proxy"
|
||||||
},
|
},
|
||||||
"items" : [
|
"items" : [
|
||||||
{
|
{
|
||||||
"keys" : [
|
"keys" : [
|
||||||
{
|
{
|
||||||
"metric" : "object[$0].db[$1].datafile_size",
|
"metric":"net.connection_count",
|
||||||
"key" : "Data File(s) Size (KB)"
|
"key" : "connection_count"
|
||||||
},
|
}
|
||||||
{
|
],
|
||||||
"metric" : "object[$0].db[$1].logfile_size",
|
"queryInfo":{
|
||||||
"key" : "Log File(s) Size (KB)"
|
"query" : "select count(pid) as connection_count from pg_catalog.pg_stat_activity where state <> 'idle'"
|
||||||
}
|
}
|
||||||
],
|
}
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
Binary file not shown.
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
script_dir=$(cd "$(dirname "$0")" && pwd)
|
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
|
|
@ -3,7 +3,7 @@ central:
|
||||||
port: 443
|
port: 443
|
||||||
logPath: "./bin/log.xml"
|
logPath: "./bin/log.xml"
|
||||||
paths:
|
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/"
|
configFolder : "config/"
|
||||||
binaryFolder : "container/"
|
binaryFolder : "container/"
|
||||||
pidFolder : "pids/"
|
pidFolder : "pids/"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user