Unfortunately I am not able to retrieve the performance values I need.
check_http_json.rb -u 'http://x/jolokia/read/jboss.as:subsystem=datasources,data-source=*,statistics=pool/ActiveCount' -E '^ActiveCount' -w 5 -c 10 --element_regex_global -p request.type
OK: All 'ActiveCount' (regex) within treshold W:5 C:10 | request.type=read
check_http_json.rb -u 'http://x/jolokia/read/jboss.as:subsystem=datasources,data-source=*,statistics=pool/ActiveCount' -E '^ActiveCount' -w 5 -c 10 --element_regex_global -p value.jboss.as:data-source=product1,statistics=pool,subsystem=datasources.ActiveCount
OK: All 'ActiveCount' (regex) within treshold W:5 C:10 |
{
"timestamp": 1515660256,
"status": 200,
"request": {
"mbean": "jboss.as:data-source=*,statistics=pool,subsystem=datasources",
"attribute": "ActiveCount",
"type": "read"
},
"value": {
"jboss.as:data-source=product1,statistics=pool,subsystem=datasources": {
"ActiveCount": 0
},
"jboss.as:data-source=product2,statistics=pool,subsystem=datasources": {
"ActiveCount": 0
},
"jboss.as:data-source=product3,statistics=pool,subsystem=datasources": {
"ActiveCount": 0
}
}
}