Skip to main content

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 Mircea Ulinic. Available under the Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alerta-blackout-regex-1.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alerta_blackout_regex-1.0.3-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file alerta-blackout-regex-1.0.3.tar.gz.

File metadata

  • Download URL: alerta-blackout-regex-1.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for alerta-blackout-regex-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6de4ac69a1e3f9ae6127237b3e62235c45ed74f6aa12df0492c0263ab606d76b
MD5 3d6152847c9fbb182922c1be15165c53
BLAKE2b-256 51f31585dd6680dcc0ead2c8cb34f5d176a6c7437cec37766ea40445a8d19e66

See more details on using hashes here.

File details

Details for the file alerta_blackout_regex-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: alerta_blackout_regex-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for alerta_blackout_regex-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9bdd78abde53c77d02039e65c4e44108bf4184c11f2bc3cc6b09485a359aac98
MD5 f39a633ac9a203fb735b5281800bdc51
BLAKE2b-256 370bf744e515a3c9d3b8da42b84e54a2ce4d711fa4c88b778affe104246bc5d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page