Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eeddaann/grafana-alert-to-syslog
Sends Grafana's alerts to syslog server
https://github.com/eeddaann/grafana-alert-to-syslog
alerts grafana syslog webhook
Last synced: 23 days ago
JSON representation
Sends Grafana's alerts to syslog server
- Host: GitHub
- URL: https://github.com/eeddaann/grafana-alert-to-syslog
- Owner: eeddaann
- License: apache-2.0
- Created: 2020-09-01T09:40:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T19:44:03.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T06:23:04.409Z (5 months ago)
- Topics: alerts, grafana, syslog, webhook
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Grafana Alert to Syslog
Listens to Grafana's webhooks and sends them to syslog server
## configuration (flags)
**dest** - syslog server hostname (default "127.0.0.1:514")
**protocol** - protocol for syslog: tcp\udp (default "tcp")
**port** - port for this webserver (default ":38090")
**format** - syslog formats: RFC3164/RFC5424/DEFUALT (default "RFC3164")
for example sending to syslog server which listens in ```udp``` at ```10.0.0.4:514``` in ```RFC5424``` format execute:
```bash
./grafana-alert-to-syslog -dest 10.0.0.4:514 -protocol udp -format RFC5424
```## configure webhook in grafana
- navigate to ```Notification Channels```
- click ```new channel```
- choose "webhook" on ```type``` dropdown
- under ```Webhook settings``` set url with the port you configured via flag (defaults to 38090)
- leave ```Http Method``` as POSTit should look like:
## setting priority and tag for alerts
To set the priorities/tags for the different alerts:
- navigate to the alert and add tags named: "priority" and/or "tag" and set the value...
- priority accepts the following:
- EMERG
- ALERT
- CRIT
- ERR
- WARNING
- NOTICE
- INFO
- DEBUG