37 lines
749 B
Plaintext
37 lines
749 B
Plaintext
|
{
|
||
|
"configID" : "989238744",
|
||
|
"target" : {
|
||
|
"connection" : {
|
||
|
"ip" : "192.168.1.106",
|
||
|
"port" : "5432",
|
||
|
"ssl" : false,
|
||
|
"portType" : "tcp"
|
||
|
},
|
||
|
"auth" : {
|
||
|
"url":"jdbc:postgresql://192.168.1.50:5432/overflow",
|
||
|
"id":"overflow",
|
||
|
"pw":"qwer5795"
|
||
|
}
|
||
|
},
|
||
|
"schedule" : {
|
||
|
"interval" : "3"
|
||
|
},
|
||
|
"crawler" : {
|
||
|
"name":"POSTGRESQL",
|
||
|
"container":"GENERAL"
|
||
|
},
|
||
|
"items" : [
|
||
|
{
|
||
|
"keys" : [
|
||
|
{
|
||
|
"metric":"net.pgsql.connection_count",
|
||
|
"key" : "connection_count"
|
||
|
}
|
||
|
],
|
||
|
"queryInfo":{
|
||
|
"query" : "select count(pid) as connection_count from pg_catalog.pg_stat_activity where state <> 'idle';"
|
||
|
},
|
||
|
"mappingInfo" : {}
|
||
|
}
|
||
|
]
|
||
|
}
|