37 lines
747 B
JSON
37 lines
747 B
JSON
{
|
|
"id" : "SOEJWEOJWOEJOSDJFOASDJFOSDFO2903870928734",
|
|
"target" : {
|
|
"connection" : {
|
|
"ip" : "192.168.1.107",
|
|
"port" : "5432",
|
|
"ssl" : false,
|
|
"portType" : "tcp"
|
|
},
|
|
"auth" : {
|
|
"url":"jdbc:postgresql://192.168.1.107:5432/postgres",
|
|
"id":"postgres",
|
|
"pw":"!@#$qwer1234"
|
|
}
|
|
},
|
|
"schedule" : {
|
|
"interval" : "10"
|
|
},
|
|
"crawler" : {
|
|
"name":"pgsql",
|
|
"container":"java_proxy"
|
|
},
|
|
"items" : [
|
|
{
|
|
"keys" : [
|
|
{
|
|
"metric":"net.connection_count",
|
|
"key" : "connection_count"
|
|
}
|
|
],
|
|
"queryInfo":{
|
|
"query" : "select count(pid) as connection_count from pg_catalog.pg_stat_activity where state <> 'idle'"
|
|
}
|
|
}
|
|
]
|
|
}
|