0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-03-16 22:33:29 +00:00
No description
Find a file
2013-04-04 02:42:43 +01:00
alerta make console v2 respect autoRefresh flag 2013-04-04 02:42:43 +01:00
bin Add --json option to alert-query for debugging 2013-03-29 22:12:54 +00:00
contrib update apache conf to alias v2 console assets only 2013-04-03 09:57:56 +01:00
dashboard make console v2 respect autoRefresh flag 2013-04-04 02:42:43 +01:00
dist starter spec file for multi-binary split 2013-03-20 07:48:52 +00:00
doc Bump version to 2.0.0 2013-03-11 11:43:40 +00:00
etc clean-up example config files 2013-03-28 16:10:27 +00:00
tests add Ganglia gmetric class 2013-03-24 22:27:24 +00:00
tools fix potentially missing attributes 2013-03-28 16:11:28 +00:00
.gitignore ignore egg-info 2013-03-20 07:48:34 +00:00
INSTALL.txt Lots of refactoring 4 2013-02-19 23:21:50 +00:00
LICENSE administrivia 2012-04-03 23:29:47 +01:00
Makefile Lots of refactoring 2013-02-17 10:55:54 +00:00
MANIFEST.in bump version to 2.0.9 2013-04-03 09:53:25 +01:00
NOTICE minor typo fixes 2012-04-03 23:49:06 +01:00
pylintrc Make some pylint recommended changes 2012-04-11 12:33:10 +01:00
README.md move default web port to 80 and test port to 8000 2013-03-25 12:36:31 +00:00
requirements.txt prep for RPM build 2013-03-22 10:02:57 +00:00
setup.py add alert widget for console v2 2013-04-02 14:49:18 +01:00
TODO Bump version to 2.0.0 2013-03-11 11:43:40 +00:00
VERSION version 2.0.10 2013-04-03 17:25:50 +01:00

Alerta monitoring system and console

The alerta monitoring tool was developed with the following aims in mind:

  • distributed and de-coupled so that it is SCALABLE
  • minimal CONFIGURATION that easily accepts alerts from any source
  • quick at-a-glance VISUALISATION with drill-down to detail

console

More screenshots are available here

Requirements

  • [ActiveMQ][1] or [RabbitMQ][2] ie. a message broker that supports STOMP
  • [MongoDB][3]

Installation

The backend components are written in Python and the web frontend in JavaScript so there is nothing to compile.

To install and configure the requirements on Debian/Ubuntu:

$ sudo apt-get install mongodb-server
$ sudo apt-get install rabbitmq-server

To enable STOMP in RabbitMQ and configure the broker:

$ sudo /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_stomp
$ sudo service rabbitmq-server restart
$ wget http://guest:guest@localhost:55672/cli/rabbitmqadmin && chmod +x rabbitmqadmin
$ ./rabbitmqadmin declare exchange name=alerts type=fanout

To run Alerta in a python virtual environment:

$ pip install virtualenv
$ pip install virtualenvwrapper
$ export WORKON_HOME=$HOME/.virtualenvs
$ mkdir -p $WORKON_HOME
$ source /usr/local/bin/virtualenvwrapper.sh
$ mkvirtualenv alerta

To install and configure a test implementation of alerta:

$ git clone git://github.com/guardian/alerta.git alerta
$ cd alerta
$ pip install -r requirements.txt
$ python setup.py install

To start alerta with a configuration that logs to /tmp:

$ alerta --log-dir=/tmp
$ alerta-api --log-dir=/tmp

To run in the foreground:

$ alerta --log-dir=/tmp --debug --foreground --use-stderr
$ alerta-api --log-dir=/tmp --debug --use-stderr

To use the alert consoles modify $HOME/.alerta.conf like so:

[DEFAULT]
api_port = 8000

[alerta-api]
dashboard_dir = /path/to/alerta/dashboard

For example, if the repo was cloned to /home/foobar/git/alerta then the dashboard_dir directory path will be /home/foobar/git/alerta/dashboard.

Then edit the port in dashboard/v1/js/console.js:

var api_server = document.domain + ':8000';

And edit the port in dashboard/v2/js/console.js:

var API_HOST = document.domain + ":8000";

And then the alert consoles (both version 1 and 2) can be found at:

http://localhost:8000/alerta/dashboard/v1/console.html
http://localhost:8000/alerta/dashboard/v2/console.html
```

To see some test alerts in the console run:

```
$ contrib/examples/create-new-alert.sh
```

Optional (for alert history)
--------

- [elasticsearch][4]
- [Kibana][5]

> Note: None of these packages require special configuration to work with Alerta.

More Information
----------------

See the alerta [wiki][6]

Contribute
----------

If you'd like to hack on Alerta, start by forking this repo on GitHub.

http://github.com/guardian/alerta

License
-------

    Alerta monitoring system and console
    Copyright 2012 Guardian News & Media

    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.

[1]: <http://activemq.apache.org/> "Apache ActiveMQ"
[2]: <http://www.rabbitmq.com> "RabbitMQ"
[3]: <http://www.10gen.com/> "10gen MongoDB"
[4]: <http://www.elasticsearch.org/> "elasticsearch"
[5]: <https://github.com/rashidkpc/Kibana> "Kibana"
[6]: <https://github.com/guardian/alerta/wiki> "Alerta wiki"