Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxcnunes/go-uptime-api
Uptime monitor API written in Golang
https://github.com/maxcnunes/go-uptime-api
Last synced: 3 months ago
JSON representation
Uptime monitor API written in Golang
- Host: GitHub
- URL: https://github.com/maxcnunes/go-uptime-api
- Owner: maxcnunes
- Created: 2015-02-06T03:33:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-16T02:12:32.000Z (over 9 years ago)
- Last Synced: 2024-10-15T15:47:13.411Z (3 months ago)
- Language: Go
- Homepage:
- Size: 301 KB
- Stars: 33
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-uptime
[![Build Status](https://travis-ci.org/maxcnunes/go-uptime-api.svg?branch=master)](https://travis-ci.org/maxcnunes/go-uptime-api)
Simple monitor server to check uptime of any target reachable through HTTP.
The Go Uptime is composed of an API and [APP](https://github.com/maxcnunes/go-uptime-app) separated in different projects.
## API
This current project is responsible for manipulating the targets data and polling all targets' URL to check if each one is up or down. Also the monitor will listen to all Docker events and capture the URL from all containers that has the `VIRTUAL_HOST` environment variable.
Concerned in a better user experience the monitor uses web socket to notify the connected clients when a target has been created or updated.# Developing
The simplest way is using Dockito vagrant box and docker-compose to provide a configured environment for you.
Setup the [Dockito vagrant box](https://github.com/dockito/devbox#dockito-vagrant-box) then inside the VM execute the command below to the docker-compose start the container:
```bash
docker-compose run local
```