Giter Site home page Giter Site logo

adamdecaf / deadcheck Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 142 KB

WIP Self-hosted dead mans switch that integrates with PagerDuty

Home Page: https://deadcheck.sh

License: Apache License 2.0

Go 98.34% Makefile 1.66%
dead-man-switch deadmanswitch

deadcheck's Introduction

deadcheck

GoDoc Build Status Coverage Status Go Report Card Apache 2 License

deadcheck is an Operator Presence Control ("OPC") system to alert when an action has not occurred within a predefined window. This is also called a Dead man's switch. deadcheck relies on setting up a schedule with a third-party service and suppressing notifications. That way a failure to check-in with deadcheck or a failure within deadcheck will cause a notification to be triggered. High quality services are chosen as integrations for deadcheck as failures to fire are a known short coming of deadcheck.

Install

Download the latest release for your architecture.

Configuration

checks:
  - id: "<string>"
    name: "<string>"
    description: "<string>"
    schedule:
      every: "<duration>"
    pagerduty:
      apiKey: "<string>"
      escalationPolicy: "<string>"

  - id: "<string>"
    name: "<string>"
    schedule:
      weekdays:
        timezone: "<string>"
        times:
          - start: "<string>"
            end: "<string>"

  - id: "<string>"
    name: "<string>"
    schedule:
      bankingDays:
        timezone: "<string>"
        times:
          - start: "<string>"
            end: "<string>"

Usage

PUT /v1/checks/{id}/check-in

Successful response, or failure. Optional: Extension time.Duration value

Integrations

  • PagerDuty: A service is used and incident created but there is a maintenance window preventing notifications. Each successful trigger pushes the maintenance window out longer into the future.

Supported and tested platforms

  • 64-bit Linux (Ubuntu, Debian), macOS, and Windows

License

Apache License 2.0 - See LICENSE for details.

deadcheck's People

Contributors

adamdecaf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

deadcheck's Issues

feature: require N check-ins

Often we may be running N instances of a service and expect them all to checkin. If not all services checkin then we'd want to alert somehow.

Use-case: If there are N kafka consumers staging work (e.g. achgateway) and none of them have work to commit (e.g. upload) then we could notify folks to expect zero commited work. (e.g. if there are zero pending files then expect no file uploaded)

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.