go-http-scheduler

command module
v0.0.0-...-7c9107b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Go healthcheck

Go healthcheck is an opensource healthcheck system that ensures your HTTP applications are up and running.

Build Status codecov

Katacoda tutorial : https://www.katacoda.com/ghiltoniel/scenarios/2

Run

Create the docker-compose.yml file :

version: '3.1'
services:
  go-http-scheduler:
    build: .
    image: ghiltoniel/go-http-scheduler
    ports:
      - 8080:8080
    volumes:
      - ./config_docker.yml:/go/src/app/config.yml      
    environment:
      - DB.TYPE=sqlite3
      - DB.PATH=data.db

Then run :

    docker-compose up

Go to http://localhost:8080/app to see your dashboard

Configuration

The configuration can be set in any of the following places :

  • config.yml file at the root of the source
  • config.yml file inside %HOME%/.go-http-scheduler/
  • config.yml file in /etc/go-http-scheduler/
  • in the environment variables (using capitalize letters, ex : DB.TYPE=sqlite3)
Configuration variables
  • history:
    • enabled: true if you want the check history to be saved into db, false if you want to keep only latest check
  • db:
    • type: mysql / sqlite3 / postgres
    • username: the database username
    • password: the database password
    • host: the database host
    • port: the database port
    • name: the database name
    • path: the file database path (for sqlite3)
  • smtp:
    • host: the smtp host
    • port: the smtp port
    • username: the smtp username
    • password: the smtp password
    • from: the from email field
    • to: the to email field for notification
  • authentication:
    • enabled: is authentication enabled
    • username: the administrator username
    • password: the administrator password

TBD

  • Notification by API calls
  • Test coverage

Documentation

Overview

Copyright © 2017 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL