github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-jmx-jolokia/README.md (about) 1 mackerel-plugin-jmx-jolokia 2 =========================== 3 4 Jolokia (https://jolokia.org/) custom metrics plugin for mackerel.io agent 5 6 ## Synopsis 7 8 ```shell 9 mackerel-plugin-jmx-jolokia [-host=<host>] [-port=<port>] [-tempfile=<tempfile>] 10 ``` 11 12 ## Example of mackerel-agent.conf 13 14 ``` 15 [plugin.metrics.jolokia] 16 command = "/path/to/mackerel-plugin-jmx-jolokia" 17 ``` 18 19 ## Example of jolokia response 20 21 ``` 22 curl -s http://127.0.0.1:8778/jolokia/read/java.lang:type=Memory | jq . 23 { 24 "request": { 25 "mbean": "java.lang:type=Memory", 26 "type": "read" 27 }, 28 "value": { 29 "ObjectPendingFinalizationCount": 0, 30 "Verbose": false, 31 "HeapMemoryUsage": { 32 "init": 1073741824, 33 "committed": 1069023232, 34 "max": 1069023232, 35 "used": 994632048 36 }, 37 "NonHeapMemoryUsage": { 38 "init": 2555904, 39 "committed": 44040192, 40 "max": 1350565888, 41 "used": 43070016 42 }, 43 "ObjectName": { 44 "objectName": "java.lang:type=Memory" 45 } 46 }, 47 "timestamp": 1455079714, 48 "status": 200 49 } 50 ```