sql problem has solved
This commit is contained in:
@@ -24,13 +24,13 @@
|
||||
{
|
||||
"keys" : [
|
||||
{
|
||||
"metric":"net.connection_count",
|
||||
"metric":"net.mysql.connection_count",
|
||||
"key":"Connections"
|
||||
}
|
||||
|
||||
],
|
||||
"queryInfo" : {
|
||||
"query":"show status where `variable_name` = 'Connections'"
|
||||
"query":"show status where variable_name = 'Connections'"
|
||||
},
|
||||
"mappingInfo" : {
|
||||
"parseDirection" : "row",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"schedule" : {
|
||||
"interval" : "5"
|
||||
"interval" : "10"
|
||||
},
|
||||
"crawler" : {
|
||||
"name":"SQL",
|
||||
@@ -24,8 +24,8 @@
|
||||
{
|
||||
"keys" : [
|
||||
{
|
||||
"metric" :"net.connection_count",
|
||||
"key" : "Connections"
|
||||
"metric" :"net.sqlserver.connection_count",
|
||||
"key" : "connection_count"
|
||||
}
|
||||
],
|
||||
"queryInfo" : {
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
"id" : "989238744",
|
||||
"target" : {
|
||||
"connection" : {
|
||||
"ip" : "192.168.1.107",
|
||||
"ip" : "192.168.1.106",
|
||||
"port" : "5432",
|
||||
"ssl" : false,
|
||||
"portType" : "tcp"
|
||||
},
|
||||
"auth" : {
|
||||
"url":"jdbc:postgresql://192.168.1.107:5432/postgres",
|
||||
"id":"postgres",
|
||||
"pw":"!@#$qwer1234"
|
||||
"url":"jdbc:postgresql://192.168.1.106:5432/postgres",
|
||||
"id":"vertx",
|
||||
"pw":"qwe123"
|
||||
}
|
||||
},
|
||||
"schedule" : {
|
||||
"interval" : "10"
|
||||
"interval" : "3"
|
||||
},
|
||||
"crawler" : {
|
||||
"name":"SQL",
|
||||
@@ -24,13 +24,14 @@
|
||||
{
|
||||
"keys" : [
|
||||
{
|
||||
"metric":"net.connection_count",
|
||||
"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'"
|
||||
}
|
||||
"query" : "select count(pid) as connection_count from pg_catalog.pg_stat_activity where state <> 'idle';"
|
||||
},
|
||||
"mappingInfo" : {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user