am2pushover

command module
v0.0.0-...-2ffaa26 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 11 Imported by: 0

README

Prometheus Alertmanager -> Pushover gateway

A simple gateway that takes alert messages from Prometheus Alertmanager via the webhook receiver, and forwards them to Pushover.

No templating or fancy features for now, but these may be included in due course, perhaps also export metrics for alerts sent (and maybe Pushover's token allowance left).

Usage

Configure as a webhook endpoint in alertmanager.yml:

- name: 'default-receiver'
  webhook_configs:
  - url: http://127.0.0.1:5001/alert

Set the host/port in the URL to match where this gateway is running.

Build the gateway:

$ go get github.com/prometheus/alertmanager/template
$ go get github.com/gregdel/pushover
$ go build am2pushover.go

Run the gateway with at least the API key flag, and user (recipient) flag.

$ ./am2pushover -api_key o.sdf923456fs765dfsfsdf -recipient oiusdf0u30fu89fu902fs

That's it!

Do note that Pushover limits pushes from regular accounts to 7500/month.

Licence

MIT.

Documentation

Overview

Package main implements a gateway bewteen a Prometheus Alertmanager and Pushover.

Jump to

Keyboard shortcuts

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