Giter VIP home page Giter VIP logo

hawkular-alerts's Introduction

hawkular-alerts

Build Status

Hawkular Alerting is the alerts module for Hawkular. It is responsible to define conditions rules over data events and fire alerts that can be sent by several action plugins.

Hawkular is a modular systems monitoring suite, that consists of several sub-projects for storing of metrics, alerting on incoming events and more. Those projects are developed in their own GitHub repositories and integrated in this project.

Project layout

The project is divided into several modules

hawkular-alerts-api

This is the public Java API for alerts component.
Users should use only this API to interact with alerts.

hawkular-alerts-engine

This is the implementation of the alerts engine.
It is responsible to manage the alerts definitions and the evaluation of the alerts conditions.
It includes a rules engine as part of the implementation details.

hawkular-alerts-rest

This is a public REST API for alerts component.
It is a wrapper of the main hawkular-alerts-api.

hawkular-alerts-actions

Common API for action plugins.
An action plugin will be deployed as a .war artifact.

hawkular-alerts-actions-plugins

Alert actions plugins.
Main responsabilities are:
- Publish supported properties.
- Process actions messages.

hawkular-alerts-filter-api

Filter API to query which dataIds are published from triggers defined.
This info helps to filter and send only the relevant data needed for triggers evaluation.

hawkular-alerts-bus

This component is responsible for the communication between the alerts engine and the bus.
hawkular-alerts-engine is decoupled from the bus, so it can be used in other scenarios
(i.e. standalone, third party alerts system).

hawkular-alerts-bus-api

This is the public API for message objects used in hawkular-alerts-bus.

Getting started

Hawkular Alerting can be built with the following steps:

    git clone https://github.com/hawkular/hawkular-alerts.git
    cd hawkular-alerts
    ./mvnw clean install

Run examples

  • Hello World
    A mandatory Hello World to show basic features of Alerting.

  • Auto Resolve Process
    Show how to use AUTORESOLVE conditions to automatically resolve alerts.

  • Events
    Tutorial about how to model Events and define conditions for Events evaluation.

  • Group Triggers
    Example about how to manage similar definitions using GroupTriggers as a template.

  • Webhook
    Hello World example using Webhooks as preferred action.

  • Monitored Wildfly Server Demo
    A composite demo where it shows how a Wildfly Server can be monitored at several levels (availability, deployments, application logs) using previous examples in a specific scenario.

Integration tests

There is a integration test suite that downloads a wildfly server and deploys hawkular-alerts with an embedded cassandra service. These integration tests can be executed using -Pitest profile:

./mvnw clean install -Pitest

Performance tests

There is a performance test suite focus in the hawkular-alerts-engine project. These tests are not active by default, they can be run using -Dtest-env=perf variable:

./mvnw clean install -Dtest-env=perf

Clustering tests

There is a clustering test suite focus on partition and distribution of the triggers and data across a topology of nodes. These test are not active by default, they can be run using -Denv=cluster variable:

./mvnw clean install -Denv=cluster

Building REST API documentation

REST API documentation can be generated using -Pdocgen profile.
The doc is generated under hawkular-alerts-rest/target folder.

./mvnw clean install -Pdocgen

Hawkular Alerting Documentation

License

Hawkular-Alerts is released under Apache License, Version 2.0 as described in the LICENSE document

   Copyright 2015 Red Hat, Inc.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License 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.

hawkular-alerts's People

Contributors

dkorn avatar jkremser avatar jmazzitelli avatar jotak avatar jpkrohling avatar jshaughn avatar lucasponce avatar pgier avatar pilhuhn avatar ppalaga avatar theute avatar tsegismont avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.