0
0
Fork 0
mirror of https://github.com/alerta/alerta-contrib.git synced 2025-03-16 21:43:30 +00:00
alerta_alerta-contrib/integrations/urlmon
2016-12-10 22:03:32 +00:00
..
README.md Minor update to URLmon readme 2016-12-10 22:03:32 +00:00
settings.py rename monitors to integrations 2015-01-26 11:55:20 +00:00
setup.py rename monitors to integrations 2015-01-26 11:55:20 +00:00
urlmon.py fixed import name to alertaclient 2016-09-15 09:12:46 +00:00

URL Monitoring Integration

Monitor any web URL and generate alerts for slow, unresponsive or error responses.

For help, join Gitter chat

Installation

Clone the GitHub repo and run:

$ python setup.py install

Or, to install remotely from GitHub run:

$ pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=integrations/urlmon

Configuration

Add URLs to check to settings.py in the following format:

checks = [
    {
        "resource": "www.google.com",
        "url": "http://www.google.com?q=foo#q=foo",
        "environment": "Production",
        "service": ["Google", "Search"]
    },
    {
        "resource": "guardian-football",
        "url": "http://www.guardian.co.uk/football",
        "environment": "Production",
        "service": ["theguardian.com", "Sport"],
        "tags": ["football"]
    },
]

Regex Matches

Add the search setting and URLmon will search the response body for the text and generate a HttpContentError if it is not found.

References

License

Copyright (c) 2014-2016 Nick Satterly. Available under the MIT License.