Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

what you want out of http monitoring

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 vendor
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 server.js
README.md

http-pulse

This is a simple HTTP monitoring service built on heroku's experimental node.js support. Authentication is based on github oauth.

Running

You need a few config variables set in your heroku environment, you'll need similar environmental variables set to run this locally.

% heroku config:add GITHUB_CALLBACK="http://http-pulse.atmos.org/auth/github/callback"
% heroku config:add GITHUB_CLIENT_ID="<your github client id>"
% heroku config:add GITHUB_SECRET="<your github secret>"
% heroku config:add EXPRESS_ENV="production"
% heroku addons:add mongohq:free
% git push heroku master

You should be able to visit your site and login via github.

Endpoints

To list your monitors

% curl -vv http://http-pulse.atmos.org/v1/<your token>/monitors

To create a monitor

% curl -vv -X POST -d "url=http://www.atmos.org" http://http-pulse.atmos.org/v1/<your token>/monitors

To delete a monitor

% curl -vv -X DELETE http://http-pulse.atmos.org/v1/<your token>/monitors/<object id from list>

Why?

I wanted to learn how to use mongodb and simple workers on heroku. The is what I came up with.

Something went wrong with that request. Please try again.