Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Solution that probes endpoints and updates cachet if there is an outage or recovery

Notifications You must be signed in to change notification settings

Webjet/cachet-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cachet-monitor

Solution that probes endpoints and updates cachet if there is an outage or recovery

Prerequisites

You will need Cachet up and running.
Take a look at Cachet's installation guide here
You will also need a URL (I.E http://cachet:8000/api/v1) of that Cachet server and authentication (I.E zlvNVV0VxKkuRL0WM5ww) token

Configuration

You will need to provide a configuration file in yaml format. Supported configuration sample :

monitors:
  - endpoint:
    type: probe
    name: GoogleHello
    url: http://google-hello:8080
    method: GET
    frequency: 5
    expectedResponseCode: 200
    timeoutInSec: 10
    maxfailures: 5
    cachet:
      componentid: 1

Start something to monitor

You will need some endpoint to monitor:

docker run -it --rm --name google-hello -p 8080:8080 google/golang-hello

Start the monitor

Check out start-monitor.sh to see how its started.

About

Solution that probes endpoints and updates cachet if there is an outage or recovery

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 92.8%
  • Shell 7.2%