Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
/ alert4jolokia Public archive

Adds alert capabilities to jmx metrics exposed via Jolokia.

Notifications You must be signed in to change notification settings

hifly81/alert4jolokia

Repository files navigation

Alert4Jolokia

Alert4Jolokia adds alert capabilities to jmx metrics exposed via Jolokia.

Compile

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.

Run

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

Examples

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

Third-Party Libraries

apache commons

http://commons.apache.org

slf4j

http://www.slf4j.org

License

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:

http://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.