Receive Witnesschain error webhooks and send Alertmanager alerts according to configuration.
This program uses Pipenv to manage dependencies. It have been tested with Python 3.12
To create dedicated virtual environment and install dependencies, after cloning an application, navigate to its root folder and invoke
pipenv sync
See config example for the list of possible options.
After creating config file, run application like
pipenv run python3 witnesschain_alertmanager_proxy.py
By default, config file will be loaded from a location ./config.yml
in
the folder where program runs. Pass CONFIG_FILE
environment variable to
specify alertnative location relative to working directory.
witnesschain_alert
-- latest timestamp of alert recorded,
Dimensions:
watchtower_id
watchtower address on L2 networkline
line where exception happenedfile
file where exception happened