Uptime
Private locations and the agent
A private location is a place inside your network where the Pingwright agent runs: a VM, a small Linux box in the office, or your Kubernetes cluster. It runs the checks you assign to that location, against databases, internal APIs, internal DNS, anything with a host and a port. Its results sit next to your checks from public regions.
How it works
- The agent connects out to Pingwright over port 443. You open no inbound ports.
- Each machine gets its own agent token (
pwa_…), so you can revoke one without stopping the rest. - Run two or more agents in one location and they share its checks between them.
- If no agent in a location has reported for 2 minutes, the location is offline: its checks show No data and the alert channels that get down alerts for those checks are told. They're told again when an agent is back.
- An agent too old for a kind of check shows No data for it, never Down. Upgrade by running the installer again.
Supported: Linux (amd64 and arm64, with systemd) and Kubernetes. Docker and Windows are not supported yet.
Create a location
In the console, open Locations, create a private location, and create an agent token for the machine you'll install on. The token is shown once.
Install on Linux
export PINGWRIGHT_AGENT_TOKEN=<your-agent-token>
curl -fsSL https://pingwright.app/install.sh | sudo env PINGWRIGHT_AGENT_TOKEN="$PINGWRIGHT_AGENT_TOKEN" shThe installer downloads the agent, verifies its checksum and starts it as a systemd service. The token comes from an environment variable, so it stays out of your shell history. Running the installer again upgrades the agent and keeps the token.
systemctl status pingwright-agent
journalctl -u pingwright-agent -fOptional settings, passed the same way as the token:
| Variable | What it does |
|---|---|
PINGWRIGHT_AGENT_VERSION | Install a specific version instead of the latest. |
PINGWRIGHT_ALLOW_PRIVATE_TARGETS | Whether checks may target private addresses. On by default. |
PINGWRIGHT_HEARTBEAT_LISTEN | An address to accept heartbeat pings on, for jobs without internet access. Off by default; see below. |
To remove it:
sudo pingwright-agent-uninstallInstall on Kubernetes
kubectl create namespace pingwright-agent
kubectl -n pingwright-agent create secret generic pingwright-agent \
--from-literal=AGENT_TOKEN="$PINGWRIGHT_AGENT_TOKEN"
kubectl apply -f https://pingwright.app/download/agent/kubernetes.yamlTo remove it: kubectl delete namespace pingwright-agent.
Heartbeats without internet access
A cron job on a machine that can't reach the internet can send its heartbeat through an agent on the same network. The agent passes the ping on over the connection it already keeps to Pingwright.
Turn it on by adding HEARTBEAT_LISTEN to the agent's settings and restarting it (on Kubernetes, set it in the agent Deployment's environment):
HEARTBEAT_LISTEN=0.0.0.0:9180sudo systemctl restart pingwright-agentThen have the job ping the agent instead, with the same token at the end of the path. /start and /fail work the same way.
curl -fsS -m 10 --retry 3 http://<agent-host>:9180/<your-token>Listen on 127.0.0.1 when the job runs on the agent's own machine. This is the only case where the agent listens on a port.
Ask your agent to do it
With Pingwright connected over MCP, a coding agent on the machine can do the whole thing: "Install the Pingwright agent here and check our Postgres at db.internal:5432 from this location."