Coder Social home page Coder Social logo

uptime's Introduction

uptime

uptime

uptime will watch your websites while you sleep. Writen in nodejs, backed by leveldb and can easy deploy using docker.

It will send you only one email to notify when your site went down. Only one.

Pull requests are always welcome.

Some ideas for pull request:

  • Send SMS to notify. ( i am so lazy to check my email )
  • Slack
  • Login/Register to management all sites easily.

Installation

uptime only requires nodejs.

$ git clone git://github.com/quocnguyen/uptime.git
$ cd uptime
$ cp .env-sample .env
$ npm install

Start the application with

npm start

Config

you can config your app using the environment variables in .env file.

KEY MEAN DEFAULT
PORT the port uptime will listen on 3001
DB folder where uptime store database ./db
VIRTUAL_HOST your domain localhost:3001
USER_AGENT user agent use when sending request
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD for sending email
INTERVAL delay between each check 5 minutes

Quick Start: Running uptime in a Docker Container

To quickly tryout uptime on your machine with Docker, I have a Docker image that includes everything you need to get started. Simply run:

sudo docker run \
  --env-file=.env-sample \
  --volume=`pwd`/db:/usr/src/app/db:rw \
  --publish=3001:3001 \
  --detach=true \
  --name=uptime \
  quocnguyen/uptime:latest

The --volume /my/own/datadir:/usr/src/app/db part of the command mounts the /my/own/datadir directory from the underlying host system as /usr/src/app/db inside the container, where uptime by default will write its data files.

Note that users on host systems with SELinux enabled may see issues with this. The current workaround is to assign the relevant SELinux policy type to the new data directory so that the container will be allowed to access it:

$ chcon -Rt svirt_sandbox_file_t /my/own/datadir

More Image

Here is some images so you can guess how it work.

Debug

uptime debug

Performance chart

uptime performance chart

License

MIT

uptime's People

Contributors

quocnguyen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.