proboviro

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

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

Go to latest
Published: Jan 28, 2016 License: GPL-2.0 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

Proboviro

An inflexible alerts notifier.

Info

Proboviro is a webhook for Prometheus Alertmanager sending alarms as push notification to an Android phone using NotifyMyAndroid.

It is a webserver which accepts only JSON POST with this structure:

{
   "version": "1",
   "status": "firing",
   "alert": [
      {
         "summary": "summary",
         "description": "description",
         "labels": {
            "alertname": "TestAlert"
         },
         "payload": {
            "activeSince": "2015-06-01T12:55:47.356+01:00",
            "alertingRule": "ALERT TestAlert IF absent(metric_name) FOR0y WITH ",
            "generatorURL": "http://localhost:9090/graph#%5B%7B%22expr%22%3A%22absent%28metric_name%29%22%2C%22tab%22%3A0%7D%5D",
            "value": "1"
         }
      }
   ]
}

Usage

To run Proboviro you must specify an API key (--apikey command line option) for NotifyMyAndroid.

The web server binds by default to 0.0.0.0:8082. This behavius can be changed with --bind command line option.

The application does not print unless --debug option is specified.

usage: proboviro --apikey=APIKEY [<flags>]

Flags:
  --help               Show help (also see --help-long and --help-man).
  -D, --debug          enable debug mode
  -b, --bind=":8082"   bind to address
  -a, --apikey=APIKEY  notifymyandroid API key
  --version            Show application version.

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