healthchecks

by QuenchWorks

Helm chartv0.0.4App 5.0.3BSD-3-ClauseVerified publisher

Healthchecks: cron job and heartbeat monitoring. Jobs ping a URL and missed pings raise alerts by email, chat and webhooks; SQLite on a volume or PostgreSQL, with the admin created at install. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks Healthchecks

Hardened Healthchecks, cron job and heartbeat monitoring: every job pings a URL when it runs, and a ping that does not arrive on schedule raises an alert by email, Slack, webhooks and the other integrations in its web UI. The image is the Django app in a venv on Wolfi Python, with pycurl and psycopg compiled against Wolfi's libcurl and libpq; it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install hc oci://ghcr.io/quenchworks/charts/healthchecks --set siteRoot=https://hc.example.com
kubectl get secret hc-healthchecks -o jsonpath='{.data.password}' | base64 -d

An init container runs the migrations and creates admin.email as a superuser with the generated password while that email has no account. Self sign-up is off (REGISTRATION_OPEN: "False").

Configuration

KeyDefaultWhat it does
siteRoothttp://localhost:8000SITE_ROOT: ping URLs, links in alerts, and the host Django accepts
admin.create, admin.emailtrue, [email protected]The superuser the init container creates
settingssign-up off, 2 gunicorn workersMore env (EMAIL_HOST, DB: postgres, integrations)
persistence.size1GiSQLite data volume (/data/hc.sqlite)
tls.enabledfalsegunicorn serves HTTPS on port 8000 (existing Secret, cert-manager or a Helm-made CA)

Django's SECRET_KEY is generated into the Secret <fullname> and kept across upgrades. With PostgreSQL (settings.DB: postgres, DB_HOST, DB_NAME, DB_USER, and DB_PASSWORD through extraEnvVars) the volume is not needed.

Verify the image

cosign verify ghcr.io/quenchworks/images/healthchecks \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Deploy healthchecks with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has healthchecks on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthealthchecks is pinned at v0.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply