changed
grpc javar start script
This commit is contained in:
parent
f5ce6e5035
commit
881505905b
|
@ -2,17 +2,14 @@
|
||||||
"id" : "736387363",
|
"id" : "736387363",
|
||||||
"target" : {
|
"target" : {
|
||||||
"connection" : {
|
"connection" : {
|
||||||
"ip" : "192.168.1.106",
|
"ip" : "192.168.1.215",
|
||||||
"port" : "1433",
|
"port" : "6379",
|
||||||
"ssl" : false,
|
"ssl" : false,
|
||||||
"portType" : "tcp"
|
"portType" : "tcp"
|
||||||
},
|
},
|
||||||
"auth" : {
|
"auth" : {
|
||||||
"url":"jdbc:sqlserver://192.168.1.106:1433;",
|
|
||||||
"id":"sa",
|
}
|
||||||
"pw":"qwe123",
|
|
||||||
"query" : "select * from master.dbo.sysprocesses"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"schedule" : {
|
"schedule" : {
|
||||||
"interval" : "10"
|
"interval" : "10"
|
||||||
|
@ -21,30 +18,50 @@
|
||||||
"name":"REDIS",
|
"name":"REDIS",
|
||||||
"container":"java_proxy"
|
"container":"java_proxy"
|
||||||
},
|
},
|
||||||
"items" : [
|
"items" : [
|
||||||
{
|
{
|
||||||
"keys" : [
|
"keys" : [
|
||||||
{
|
{
|
||||||
"metric" : "object[$0].db[$1].datafile_size",
|
"metric":"cpu.usage.system",
|
||||||
"key" : "Data File(s) Size (KB)"
|
"key":"used_cpu_sys"
|
||||||
},
|
|
||||||
{
|
|
||||||
"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",
|
"metric":"cpu.usage.user",
|
||||||
"arrayColumns" : [ "object_name","instance_name"],
|
"key":"used_cpu_user"
|
||||||
"keyColumns" : ["counter_name"],
|
},
|
||||||
"valueColumn" : "cntr_value"
|
{
|
||||||
|
"metric":"cpu.usage.system_children",
|
||||||
|
"key":"used_cpu_sys_children"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric":"cpu.usage.user_children",
|
||||||
|
"key":"used_cpu_user_children"
|
||||||
}
|
}
|
||||||
}
|
],
|
||||||
]
|
"queryInfo" : {
|
||||||
|
"query" : "CPU"
|
||||||
|
},
|
||||||
|
"mappingInfo" : {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys" : [
|
||||||
|
{
|
||||||
|
"metric":"memory.usage.used",
|
||||||
|
"key":"used_memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric":"memory.usage.rss",
|
||||||
|
"key":"used_memory_rss"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"metric":"memory.usage.peak",
|
||||||
|
"key":"used_memory_peak"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"queryInfo" : {
|
||||||
|
"query" : "Memory"
|
||||||
|
},
|
||||||
|
"mappingInfo" : {}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user