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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址