am2pushbullet

command module
v0.0.0-...-372fdf0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 9 Imported by: 0

README

Prometheus Alertmanager -> Pushbullet gateway

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

No templating or fancy features for now, but these may be included in due course, perhaps also export metrics for alerts sent (and maybe Pushbullet'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/xconstruct/go-pushbullet
$ go build am2pushbullet.go

Run the gateway with at least the API key flag, use your API key:

$ ./am2pushbullet -api_key o.sdf923456fs765dfsfsdf

That's it!

Do note that Pushbullet limits pushed from free accounts to 500/month.

Licence

MIT.

Documentation

Overview

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

Jump to

Keyboard shortcuts

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