https://github.com/github/pagerduty-incident-webhooks
Heroku app that fires webhooks for triggered PagerDuty incidents
https://github.com/github/pagerduty-incident-webhooks
Last synced: 5 months ago
JSON representation
Heroku app that fires webhooks for triggered PagerDuty incidents
- Host: GitHub
- URL: https://github.com/github/pagerduty-incident-webhooks
- Owner: github
- License: mit
- Archived: true
- Created: 2012-03-14T13:34:52.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T09:04:27.000Z (about 11 years ago)
- Last Synced: 2024-09-24T21:10:44.482Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 139 KB
- Stars: 42
- Watchers: 15
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**NOTE: This repository is no longer supported or updated by GitHub. If you wish to continue to develop this code yourself, we recommend you fork it.**
# PagerDuty Incident Webhooks
This fires a webhook of incident data for each triggered incident PagerDuty in your account. Ideally, you'd point this at another tiny app that processes the events and does your bidding with them - ships them to campfire, APN, a tiny sinatra app that pipes incidents to `say`...go nuts.
Re-triggered incidents will cause an additional webhook to be sent for the same incident. Make sure your endpoint is okay with this.
I hate to poll like this, but [whatever](http://feedback.pagerduty.com/forums/18293-general/suggestions/306514-support-webhooks-as-a-notification-method). It works.
## Running on Heroku
Clone this repo.
In the clone:
heroku create --stack cedar yourname-pagerduty-incident-webhooks --addons memcache heroku papertrail:test
Set the following config at heroku:
heroku config:add PAGERDUTY_ACCOUNT_SUBDOMAIN=foo
heroku config:add PAGERDUTY_AUTH_EMAIL=foo@foo.com
heroku config:add PAGERDUTY_AUTH_PASSWORD=foo
heroku config:add PAGERDUTY_WEBHOOK_ENDPOINT=http://requestb.in/1e88aqp1
heroku config:add POLL_INTERVAL=10
Ship it:
git push heroku master
Fire up a web process:
heroku scale web=1
Hit up [papertrail](https://papertrailapp.com/events) and check on the logs.
## Credit where Credit is Due
Large parts of this are based on the PagerDuty library [@leejones](https://github.com/leejones) wrote for [pager_today](https://github.com/railsmachine/pager_today).
Copying
-------
Copyright 2012, GitHub, Inc. See the `LICENSE` file for license rights and limitations (MIT).