Skip to content

Commit

Permalink
requirements and install updates
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 10, 2016
1 parent 9f2da5e commit be316d3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions integrations/consul/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ Requirements:

consul
consul-alerts
python-consul
alerta


Installation
------------

$ pip install python-consul
$ pip install alerta
copy script to somewhere accessible by consul-alerts, make sure its executable

Configuration
Expand All @@ -23,11 +26,13 @@ Configuration
consul-alerts/config/notifiers/custom/alerta:<path>/consul-alerta.py
alerta/apikey:'api-key' // alerta key for api access
alerta/apiurl:'api-url' // alerta api url
alerta/timeout:900 // item timeout in alerta (default 86400)
alerta/max_retries:3 // max api attempts
alerta/timeout:900 // alarm timeout in alerta (default 86400)
alerta/max_retries:3 // max api call attemps
alerta/sleep:2 // sleep between attemps
alerta/origin:consul // alert origin
alerta/alerttype:ConsulAlerts // alert type
consul-alerts/config/notif-profiles/default: { "Interval": 10 } // will keep active alerts "open" in alerta, before timeout removes them


[1]: <https://github.com/hashicorp/consul> "Consul"
[2]: <https://github.com/AcalephStorage/consul-alerts> "Consul-Alerts"

0 comments on commit be316d3

Please sign in to comment.