https://github.com/dhtech/alertsquarer
An visual experience for rendering prometheus alerts
https://github.com/dhtech/alertsquarer
Last synced: 4 months ago
JSON representation
An visual experience for rendering prometheus alerts
- Host: GitHub
- URL: https://github.com/dhtech/alertsquarer
- Owner: dhtech
- Created: 2023-06-15T14:16:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T17:26:10.000Z (almost 2 years ago)
- Last Synced: 2024-06-13T21:53:55.388Z (almost 2 years ago)
- Language: TypeScript
- Size: 931 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alertsquarer
An visual experience for rendering prometheus alerts
## Prereqs
* 1 raspberry 3+
* nodejs
* 32x64 RGB-LED panels, default two
* 5V 5A powersupply
## Install and run
```
cd /opt
git clone https://github.com/dhtech/alertsquarer.git
cd alertsquarer
npm install
# to run via ts-node, start in separate terminal windows:
npm run dev
# to build ts to js and run
npm run build
npm run start
```
### Blacklist kernel module
The matrix driver doesn't work *at all* when the module `snd_bcm2835` is loaded so it needs to be blacklisted.
```
echo "blacklist snd_bcm2835" > /etc/modprobe.d/no_rpi_sound.conf
```
### Slightly improve display update
```
echo "isolcpus=3" >> /boot/cmdline.txt
```
### systemctl
Autostart the service
```
cat </etc/systemd/system/alertsquarer.service
[Unit]
Description=alertsquarer
After=network.target
[Service]
ExecStart=/usr/bin/npm run start
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/opt/alertsquarer
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable alertsquarer.service
systemctl start alertsquarer.service
```
## Troubleshooting
### If the matrix-controller just restarts too fast
You might have forgotten to disable snd_bcm2835, see above.
## More information
The LED-library:
https://github.com/hzeller/rpi-rgb-led-matrix/tree/master
Has a lot of debug information
The Node binding:
https://github.com/alexeden/rpi-led-matrix