consullastupdate

command module
v0.0.0-...-0ab1573 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 7 Imported by: 0

README

Last Update

A very small tool to take 1 or 2 arguments, the KV value which should be a timestamp to read and compare against 1 minute ago or against the number of seconds set in the 2nd arguments. If it's older report failure and exit with 2 otherwise 0.

Output is geared for consul consumption. It's does not change strings all the time, to hide away dublicated output from the propagation layer.

Usage

Usage on the commandline

consullastupdate /path/to/timestamp 120
Stats

Consullastupdate emits statsD information. It will push the timestamp to statsD if found.

Documentation

Overview

Checking a timestamp in the consul KV. Timestaamp need to be unix epoch

Jump to

Keyboard shortcuts

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