| 1 | # This configuration should be taken as an example what the python scrip generates. |
| 2 | LoadPlugin "curl_jolokia" |
| 3 | <LoadPlugin curl_jolokia> |
| 4 | Interval 1 |
| 5 | </LoadPlugin> |
| 6 | |
| 7 | # Adjust the location of the jolokia plugin according to your setup |
| 8 | # specify a username/password which has access to the values you want to aggregate |
| 9 | <Plugin curl_jolokia> |
| 10 | <URL "http://10.10.10.10:7101/jolokia-war-1.2.0/?ignoreErrors=true&canonicalNaming=false";> |
| 11 | Host "_APPPERF_JMX" |
| 12 | User "webloginname" |
| 13 | Password "passvoid" |
| 14 | Post "[{\"config\":{},\"type\":\"read\",\"mbean\":\"java.lang:name=PS Scavenge,type=GarbageCollector\",\"attribute\":[\"CollectionTime\",\"CollectionCount\"]},{\"config\":{},\"type\":\"read\",\"mbean\":\"java.lang:type=Threading\",\"attribute\":[\"CurrentThreadUserTime\",\"CurrentThreadCpuTime\"]},{\"config\":{},\"type\":\"read\",\"mbean\":\"java.lang:type=Runtime\",\"attribute\":[\"Uptime\"]},{\"config\":{},\"type\":\"read\",\"mbean\":\"java.lang:type=ClassLoading\",\"attribute\":[\"LoadedClassCount\",\"TotalLoadedClassCount\"]}]" |
| 15 | |
| 16 | <BeanName "PS_Scavenge"> |
| 17 | MBean "java.lang:name=PS Scavenge,type=GarbageCollector" |
| 18 | BeanNameSpace "java_lang" |
| 19 | <AttributeName "collectiontime" > |
| 20 | Attribute "CollectionTime" |
| 21 | type "gauge" |
| 22 | </AttributeName> |
| 23 | <AttributeName "collectioncount" > |
| 24 | Attribute "CollectionCount" |
| 25 | type "gauge" |
| 26 | </AttributeName> |
| 27 | |
| 28 | </BeanName> |
| 29 | <BeanName "type_Runtime"> |
| 30 | MBean "java.lang:type=Runtime" |
| 31 | BeanNameSpace "java_lang" |
| 32 | <AttributeName "uptime" > |
| 33 | Attribute "Uptime" |
| 34 | type "gauge" |
| 35 | </AttributeName> |
| 36 | |
| 37 | </BeanName> |
| 38 | <BeanName "type_ClassLoading"> |
| 39 | MBean "java.lang:type=ClassLoading" |
| 40 | BeanNameSpace "java_lang" |
| 41 | <AttributeName "loadedclasscount" > |
| 42 | Attribute "LoadedClassCount" |
| 43 | type "gauge" |
| 44 | </AttributeName> |
| 45 | <AttributeName "totalloadedclasscount" > |
| 46 | Attribute "TotalLoadedClassCount" |
| 47 | type "gauge" |
| 48 | </AttributeName> |
| 49 | |
| 50 | </BeanName> |
| 51 | <BeanName "type_OperatingSystem"> |
| 52 | MBean "java.lang:type=OperatingSystem" |
| 53 | BeanNameSpace "java_lang" |
| 54 | <AttributeName "systemloadaverage" > |
| 55 | Attribute "SystemLoadAverage" |
| 56 | type "gauge" |
| 57 | </AttributeName> |
| 58 | <AttributeName "openfiledescriptorcount" > |
| 59 | Attribute "OpenFileDescriptorCount" |
| 60 | type "gauge" |
| 61 | </AttributeName> |
| 62 | <AttributeName "processcputime" > |
| 63 | Attribute "ProcessCpuTime" |
| 64 | type "gauge" |
| 65 | </AttributeName> |
| 66 | <AttributeName "freephysicalmemorysize" > |
| 67 | Attribute "FreePhysicalMemorySize" |
| 68 | type "gauge" |
| 69 | </AttributeName> |
| 70 | <AttributeName "freeswapspacesize" > |
| 71 | Attribute "FreeSwapSpaceSize" |
| 72 | type "gauge" |
| 73 | </AttributeName> |
| 74 | <AttributeName "processcpuload" > |
| 75 | Attribute "ProcessCpuLoad" |
| 76 | type "gauge" |
| 77 | </AttributeName> |
| 78 | <AttributeName "systemcpuload" > |
| 79 | Attribute "SystemCpuLoad" |
| 80 | type "gauge" |
| 81 | </AttributeName> |
| 82 | |
| 83 | </BeanName> |
| 84 | </URL> |
| 85 | </Plugin> |