Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qjoly/alertmanager-awtrix
Be alerted on your Awtrix when your server goes down
https://github.com/qjoly/alertmanager-awtrix
Last synced: about 2 months ago
JSON representation
Be alerted on your Awtrix when your server goes down
- Host: GitHub
- URL: https://github.com/qjoly/alertmanager-awtrix
- Owner: qjoly
- Created: 2024-08-24T12:45:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-26T08:30:12.000Z (3 months ago)
- Last Synced: 2024-11-30T16:40:35.640Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 5.7 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Demo](./.github/gif-demo.gif)
# AlertManager -> Awtrix
Highly inspired by the [Blinky](https://www.getblinky.io/), I wanted to receive my monitoring alerts directly on my Awtrix matrix. That's all 🤷♂️
This program will expose a web server on port 5000 and must be configured as a webhook endpoint from AlertManager.
## Install
### Using source codeInstall requirements :
- Go (>=1.21.6)Build binary :
```bash
go build -o alertmanager2awtrix
```You will obtain a binary `alertmanager2awtrix`.
### Using Docker
Sadly, no Dockerfile is provided in this project. I use [ko](https://ko.build) to generate a Dockerfile.
Use the following `docker-compose.yaml` :
```yaml
version: '3.8'
services:
alertmanager2awtrix:
image: ghcr.io/qjoly/alertmanager-awtrix:latest
container_name: alertmanager2awtrix
ports:
- 5000:5000
environment:
- "AWTRIX_NOTIFY_URL=http://192.168.1.26/api/notify"
- "AWTRIX_USERNAME=awtrix" # optional
- "AWTRIX_PASSWORD=awtrix" # optional
- "FIRING_ALERT_ICON=555"
- "FIRING_TEXT_COLOR=#FF0000"
- "RESOLVED_ALERT_ICON=138"
- "RESOLVED_TEXT_COLOR=#C0C78C"
- "HOLD_ALERT=true"
```# Configuration
## Environment variables
- `AWTRIX_NOTIFY_URL` (e.g. `http://192.168.1.26/api/notify`)
- `AWTRIX_USERNAME` and `AWTRIX_PASSWORD` (only if needed)
- `FIRING_ALERT_ICON` (and `RESOLVED_ALERT_ICON`) with the icon id (it should be downloaded in the awtrix)
- `FIRING_TEXT_COLOR` (and `RESOLVED_TEXT_COLOR`) with RGB Hexadecimal color (e.g. `#FF0000`)
- `HOLD_ALERT` if you want to have to press the middle button to dismiss the alert## Add webhook in alertmanager
```yaml
receivers:
- name: 'web.hook'
webhook_configs:
- url: 'http://:5000/webhook'
```# ROADMAP
- Support basic auth
- Use alert labels to choose the icon displayedfeel free to give me your ideas