Alerta Blackout enhancement plugin
Project description
Alerta plugin to enhance the blackout management, by matching the alerts against blackouts with PCRE (Perl Compatible Regular Expression) on attributes.
A blackout is considered matched when all its attributes are matched.
Once an alert is identified as matching a blackout, a special label is applied, with the format: regex_blackout=<blackout id>, where blackout id is the ID of the matched blackout, e.g., regex_blackout=d8ba1d3b-dbfd-4677-ab00-e7f8469d7ad3. This way, when the alert is fired again, there’s no need to verify the matching again, but simply verify whether the blackout referenced is still active.
Installation
This plugin is designed to be installed on the Alerta server; the package is available on PyPI so you can install as:
pip install alerta-blackout-regex
Configuration
Add blackout_regex to the list of enabled PLUGINS in alertad.conf server configuration file and set plugin-specific variables either in the server configuration file or as environment variables.
PLUGINS = ['blackout_regex']
References
License
Copyright (c) 2020-2022 Mircea Ulinic. Available under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file alerta-blackout-regex-3.1.0.tar.gz
.
File metadata
- Download URL: alerta-blackout-regex-3.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846f5a7509c9b25f3ed1dad9a2f0a16ea0272be49f2ef5111c1582a860ad7ba1 |
|
MD5 | 418b0814fa40149552b0271ed962f874 |
|
BLAKE2b-256 | 61010149a1f839157ab258d04a379e15834415e5448b938946c117856d6e98dc |
File details
Details for the file alerta_blackout_regex-3.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: alerta_blackout_regex-3.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16c116dccd023a9b2c1426726a38a9f67b312a68172d202d13c5046c3a83c156 |
|
MD5 | 9240e8ba191999af04654294f94e7dfc |
|
BLAKE2b-256 | f77c0d5d4bb4b46fbdfe4b5b46d0273d366034c633fb7455a479bb07141e6a90 |