kristy

command module
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 3 Imported by: 0

README

kristy GoDoc Go Report Card

Kristy is a baby-sitter for your processes. It reports errors to HealthCheck.io and Slack as needed to ensure no cron job falls through the cracks.

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN=$(pwd) go install github.com/spotlightpa/kristy@latest

Screenshots

$ kristy -h
kristy - a baby-sitter for your cron jobs

Kristy tells HealthCheck.io how your cronjobs are doing. If it can't reach
HealthCheck.io, it falls back to warning Slack that something went wrong.

Usage:

        kristy [options] <command to babysit>

Options may be also passed as environmental variables prefixed with KRISTY_.

Options:
  -healthcheck UUID
        UUID for HealthCheck.io job
  -silent
        don't log debug output
  -slack URL
        Slack hook URL
  -timeout duration
        timeout for HTTP requests (default 10s)

$ KRISTY_HEALTHCHECK='x' KRISTY_SLACK='https://none.example/' kristy gronk
kristy 2021/03/03 12:11:20 starting
kristy 2021/03/03 12:11:20 done
Error: 4 errors:
        error 1: bad response from HealthCheck.io: unexpected status: 404 Not Found
        error 2: bad response from HealthCheck.io: unexpected status: 404 Not Found
        error 3: Post "https://none.example/": dial tcp: lookup none.example: no such host
        error 4: could not start process: exec: "gronk": executable file not found in $PATH

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package healthcheckio is a wrapper for API calls to HealthCheck.io
Package healthcheckio is a wrapper for API calls to HealthCheck.io
Package sitter contains exports the CLI app for Kristy
Package sitter contains exports the CLI app for Kristy

Jump to

Keyboard shortcuts

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