Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.05 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.05 KB

SAP HA alert handlers

Table of Content

Rationale

The alert handler serve as central component for building reactive self-healing systems, based on Prometheus. It is meant to be a single binary, which will be distribued and installed to all nodes of clusters. The routing itself is delegated to alertmanager of Prometheus. It is main functionality is to selfheal and handle Prometheus alerts automatically, which are fired by Prometheus. The alert-handler share a common declarative API with the alertmanager (based on labels) which need to be respected by users. See API

Devel

  • build: go build .

Deploy to the node

Debugging:

systemctl restart prometheus-alertmanager

prometheus-alertmanager

amtool cli for alertmanager: examples: https://github.com/prometheus/alertmanager#examples

tests:

Allocate big file fallocate -l 4G fake2.img

Debugging alerts

promtool check rules /path/to/example.rules.yml