consul-pagerduty

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

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

Go to latest
Published: May 22, 2016 License: MIT Imports: 6 Imported by: 0

README

Consul-Pagerduty

consul-pagerduty is a simple service that watches the health check's status on Consul and notifies pagerduty upon failure.

Usage

docker run -d \
           -e CONSUL_ADDR=<$CONSUL_ADDRESS:8500> \
           -e PAGERDUTY_SERVICE_KEY=<$PAGERDUTY_SERIVCE_KEY> \
           alaa/consul-pagerduty:latest

Running consul-pagerduty on Marathon

The dockerized consul-pagerduty memory footprint is arount 8.0 mb.

[{
  "id": "notifier",
  "cpus": 0.1,
  "mem": 16.0,
  "instances": 1,
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "alaa/consul-pagerduty:latest",
      "forcePullImage": true
    }
  },
  "env": {
    "CONSUL_ADDR": "$CONSUL_ADDR",
    "PAGERDUTY_SERVICE_KEY": "$PAGERDUTY_SERVICE_KEY"
  }
}]

TODO

  • Split code into packges
  • Write some tests
  • Implement distributed locking to provide HA for multiple instances

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