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.

Every [[check]] needs a name now, and alerts, the status page and the API use it. Until 0.6.0 a check was its position in the file, so moving one check up broke every link to the checks below it.

⚠️
A [[check]] without name stops Pegel from starting, and API paths change from /api/checks/3 to /api/checks/shop. Run pegel check from 0.7.0 against your config before you restart. It lists every check that needs a name.

Added

  • pegel check, which reads the config, runs every check once and exits.
  • A sound in the dashboard when a check goes down, off by default.
  • --config to name the config file.

Changed

  • Breaking: every [[check]] needs a unique name.
  • Breaking: API paths use the name, /api/checks/shop.
  • [status] lists checks by name.

Deprecated

  • PEGEL_CONFIG. Use --config. The variable goes in 0.9.0.
 [[check]]
+name = "shop"
 url = "https://shop.example.org/health"
 expect = 200
audio-thumbnail
The dashboard sound for a check that goes down
0:00
/4.1

Comments

Buy Logbuch