sql problem has solved

This commit is contained in:
insanity@loafle.com
2017-05-18 13:45:05 +09:00
parent ca5d24c9a0
commit 36751de2f7
7 changed files with 82 additions and 107 deletions

View File

@@ -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",

View File

@@ -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" : {

View File

@@ -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" : {}
}
]
}