Pegel

Everything about Pegel: releases, incidents and how two people build and run it.

TIL

Go’s http.Client waits forever by default

An http.Client without Timeout never gives up on a server that accepts the connection and then sends nothing. The probe hung on exactly that for 40 minutes during testing.

client := &http.Client{Timeout: 10 * time.Second}

Timeout covers the whole request, from dialling to the last byte of the body. For a check, that is the number we want.

Post

Running Pegel on a Raspberry Pi

Pegel uses 23 MB of memory on a Raspberry Pi 4 checking 40 sites a minute. The compose file, and the two settings that spare the SD card.

1 min

A single-board computer with the label pegel-pi.

PostPaid members only

The home probe is slower, and we kept it

Our home probe answers two to three times slower than the VPS, and slowest at noon. It still sees things the VPS cannot.

1 min

A line chart of p95 check latency over one day. The home probe ranges from 39 to 66 ms and peaks at noon, while the VPS probe stays between 17 and 24 ms.

Changelog

v0.8.0: Maintenance windows

A check inside a maintenance window still runs but does not alert, and the status page says Maintenance instead of Down.

The version mark v0.8.0 above the line Maintenance windows.

Changelog

v0.7.0: Every check has a name

Checks are named in the config, the alerts and the API. A check without a name stops Pegel from starting. The release also adds pegel check.

Changelog

v0.6.0: A status page of its own

Pegel serves a public status page from the same binary. HTTPS checks warn 14 days before a certificate expires.

Buy Logbuch