Skip to main content
A supervisor needs to know when to restart pgw, and a monitor needs to know when to alert. /healthz tells the supervisor whether the process runs, and /readyz tells the monitor whether pgw can take calls right now. Both answer over plain HTTP without an API key. Both endpoints are on the admin listener, 127.0.0.1:8080 by default.

Check pgw from its host

A healthy gateway answers both with 200.

How /readyz decides

While pgw starts or stops, /readyz answers 503 with the body not ready. Once pgw has started, each request runs the following checks in parallel. A check that takes longer than 1 second fails with timed out. When a check fails, /readyz answers 503 with the name and error of each failed check, one per line.

Next steps

Set up alerts

Alert before the certificate expires. The cert check fails only afterward.

Scrape the metrics

Collect the counters and gauges that show why a check fails.