Alert4Jolokia adds alert capabilities to jmx metrics exposed via Jolokia.
You need Apache Maven.
From root directory open a terminal and execute:
mvn clean package
A ear file, alert4jolokia-ear will be created in alert4jolokia-ear/target folder.
alert4jolokia-ear is an enterprise application running on a JEE application server.
Currently it has been tested on Wildfly 8.x/9.x/10.x
Alerts defined so far:
Heap Memory in use:
java.lang:type=Memory --> HeapMemoryUsage;
JBoss/Wildfly datasource number of connections in use:
jboss.as:data-source={0},statistics=pool,subsystem=datasources --> InUseCount
Apache TomEE datasource number of connections in use
openejb.management:ObjectType=datasources,DataSource={0} --> NumActive
ActiveMQ broker messages sent to the destination
org.apache.activemq:type=Broker,brokerName={0},destinationType={1},destinationName={2} --> EnqueueCount
ActiveMQ broker memory in use percentage
org.apache.activemq:type=Broker,brokerName={0} --> MemoryPercentUsage
apache commons
slf4j
Copyright 2016 Hifly81
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.