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
- Host: GitHub
- URL: https://github.com/mallozup/hasap-alerts-handler
- Owner: MalloZup
- Created: 2020-09-21T17:21:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-04T17:18:03.000Z (about 5 years ago)
- Last Synced: 2024-10-30T08:37:58.664Z (12 months ago)
- Topics: golang, prometheus, self-healing
- Language: Go
- Homepage:
- Size: 7.63 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
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`