Skip to content

ChorusOne/witnesschain-alertmanager-proxy

Repository files navigation

witnesschain-alertmanager-proxy

Receive Witnesschain error webhooks and send Alertmanager alerts according to configuration.

Installation

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

Configuration

See config example for the list of possible options.

Running

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.

Available metrics

witnesschain_alert -- latest timestamp of alert recorded,

Dimensions:

  • watchtower_id watchtower address on L2 network
  • line line where exception happened
  • file file where exception happened

About

Receive Witnesschain error webhooks and send Alertmanager alerts

Resources

License

Stars

Watchers

Forks

Packages

No packages published