grafana-alert-to-syslog

command module
v0.0.0-...-cc5c7b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

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:

./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 POST

it 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL