Pegel

One probe times out, and nothing happens

Two probes are on main. The home probe times out and Pegel waits. A minute later both time out and the alert fires.

0:00
/0:05
pegel watch shop on main. The clip loops.

Two probes are on main. In the clip, the home probe times out on shop at 12:01 CEST and Pegel waits, because the VPS still gets a 200. A minute later both time out, and the alert says "2 of 2". It ships in 0.9.0.

The config from the clip

[defaults]
interval = 60
agree = 2

[[check]]
name = "shop"
url = "https://shop.example.org/health"
expect = 200

[[probe]]
name = "home"

[[probe]]
name = "vps"

Try it from main

Build from main on both machines and start the second one as a probe. It asks your Pegel for its checks and needs no config.

$ go install pegel.example.org/pegel/cmd/pegel@main
$ pegel probe --name vps --join https://pegel.home.example.org
probe vps joined, 1 check, interval 60 s

interval counts seconds on main. Your 0.8 config will not start until you multiply it by 60, which is the point.

Comments

Buy Logbuch