sensor conf
This commit is contained in:
parent
c719872fff
commit
a123dee6b0
|
@ -8,11 +8,8 @@
|
||||||
"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"
|
||||||
|
@ -22,29 +19,5 @@
|
||||||
"container":"network_proxy"
|
"container":"network_proxy"
|
||||||
},
|
},
|
||||||
"items" : [
|
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user