An open API service indexing awesome lists of open source software.

https://github.com/mallozup/hasap-alerts-handler

handler for alerts raised by prometheus in context of HA/SAP events
https://github.com/mallozup/hasap-alerts-handler

golang prometheus self-healing

Last synced: 3 months ago
JSON representation

handler for alerts raised by prometheus in context of HA/SAP events

Awesome Lists containing this project

README

          

# SAP HA alert handlers

## Table of Content

- [Architecture](doc/design.md)
- [API](doc/api.md)
- [Quickstart](doc/quickstart.md)
- [Devel](#devel)

# 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](doc/api.md)

# 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`