Skip to content

A meteor package that adds a /isup route to verify the app is up and can fetch docs from mongodb. For use with website monitoring tools.

License

Notifications You must be signed in to change notification settings

practicalmeteor/meteor-isup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status #practicalmeteor:isup

practicalmeteor:isup

Adds a /isup route to verify your app is up and can connect to mongodb.

If successful, returns 'yes' as plain text in the body.

For use with website monitoring tools, such as pingdom.

Implementation

This package creates an isup collection with a single document in it:

{
  "isup": "yes"
}

When called, looks up the document in mongodb and:

  • If found, returns a 200 HTTP status code with the value of the isup field as plain text in the body.

  • If not found, returns a 404 HTTP status code.

  • If it can't connect to mongodb, returns a 500 HTTP status code (internal server error).

License

MIT

About

A meteor package that adds a /isup route to verify the app is up and can fetch docs from mongodb. For use with website monitoring tools.

Resources

License

Stars

Watchers

Forks

Packages

No packages published