GitXplorerGitXplorer
c

proboviro

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
3597542d95f49321ff13dd9fa36295a417e0895a

Add debug and adapt struct to new alertmanager version

ccrisidev committed 9 years ago
Unverified
b57e1d03d76fa69e47af698dbd8a7cdeb7326698

Add bin to gitignore

ccrisidev committed 9 years ago
Unverified
a9f1a71bcd1bee10cc509c247557dbb80028e8a1

Fix README

ccrisidev committed 9 years ago
Unverified
534cf171786eb7cd345880244210c8d497bafb6b

Initial release

ccrisidev committed 9 years ago
Unverified
f56cc098bab33f780b89ea5a113d004584ef4a93

Initial commit

ccrisidev committed 9 years ago

README

The README file for this repository.

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.