This commit is contained in:
geek 2017-10-24 12:39:19 +09:00
parent 8ce0ab73ac
commit d72ab63a46
4 changed files with 110 additions and 1 deletions

View File

@ -65,6 +65,7 @@ public class JmxCrawler extends Crawler{
try {
att = beanCon.getAttribute(mbeanName, attr.getName());
}catch (Exception e) {
logCrawler(mbeanName, attr, "fail: " + e);
continue;
}

View File

@ -36,6 +36,8 @@ public class AppTest {
print("",result);
}
//keytool -export -alias alias_name -keystore path_to_keystore_file -rfc -file path_to_certificate_file
private void print(String s, List<OFResultSet> mm) {
System.out.println(s);

View File

@ -76,7 +76,7 @@
"extend" : {
"aliases" : [
{
"key": "name",
"key": "WebModule",
"index":0
}
]

View File

@ -0,0 +1,106 @@
{
"id":"5",
"target":{
"auth":{
"pw":"tomcat",
"id":"jmxxuser"
},
"connection":{
"ip":"192.168.1.204",
"port":"9840",
"portType":"TCP",
"ssl":false
}
},
"schedule":{
"interval":"5"
},
"crawler":{
"name":"JMX_CRAWLER",
"container":"java_proxy"
},
"items":[
{
"keys":[
{
"metric":"global.request.processing_time[$0]",
"key":"processingTime"
},
{
"metric":"global.request.max_time[$0]",
"key":"maxTime"
},
{
"metric":"global.request.request_count[$0]",
"key":"requestCount"
},
{
"metric":"global.request.error_count[$0]",
"key":"errorCount"
},
{
"metric":"global.request.bytes_rcvd[$0]",
"key":"bytesReceived"
},
{
"metric":"global.request.bytes_sent[$0]",
"key":"bytesSent"
}
],
"queryInfo":{
"query":"*Catalina:type=GlobalRequestProcessor,*",
"extend":{
"aliases":[
{
"key":"Catalina:type",
"index":0
}
]
}
},
"mappingInfo":{
"parseDirection":null,
"arrayColumns":[
"GlobalRequestProcessor"
],
"keyColumns":null,
"valueColumn":null
}
},
{
"keys":[
{
"metric":"thread.busy[$0]",
"key":"currentThreadsBusy"
},
{
"metric":"thread.count[$0]",
"key":"currentThreadCount"
},
{
"metric":"thread.max[$0]",
"key":"maxThreads"
}
],
"queryInfo":{
"query":"*Catalina:type=ThreadPool,*",
"extend":{
"aliases":[
{
"key":"Catalina:type",
"index":0
}
]
}
},
"mappingInfo":{
"parseDirection":null,
"arrayColumns":[
"ThreadPool"
],
"keyColumns":null,
"valueColumn":null
}
}
]
}