Monitoring

Agents

Run a private monitoring agent inside your own network to watch internal APIs, databases, and air-gapped systems. The agents page keeps the monitors nothing is checking in view.

In the app: More › Monitoring › Agents

UptimeWarden's cloud locations cover everything reachable from the public internet. For everything else, internal APIs, databases behind a VPN, factory floor controllers, air-gapped systems, you run a private monitoring agent inside your own network.

The agent is a small, single-binary program that runs the same checks our cloud locations do, then reports the results back to UptimeWarden over a standard outbound HTTPS connection. No inbound ports, no firewall holes, only port 443 outbound.

What a private agent is for

  • Internal-network monitoring: reach private endpoints without exposing them publicly.
  • On-premises systems: corporate data centres, factory networks, hospital LANs.
  • Lowest-latency measurement: an agent sitting next to the target gives you the closest possible read on what your users actually experience.
  • Custom locations: when our cloud locations don't include the geography you care about, the agent fills the gap.

What an agent can monitor

A private agent runs the check types UptimeWarden actively reaches out to test: HTTP/HTTPS, TCP, UDP, SSL, WebSocket, gRPC, MCP, DNS and Ping. Heartbeat monitors are the exception: nothing checks anything there, your job sends us a signal. A DNS monitor on an agent applies the record type, the resolver and the expected answers, and it resolves internal names too (see DNS Monitor).

Plan availability

Private agents are available on every plan, including Free. What changes per plan is how many agents you can run: Free 1, Hobby and Starter 3, Professional 10, Enterprise unlimited. If your plan's agent limit isn't enough, you can buy an agent add-on pack.

Installing an agent

Each agent is identified by a unique connection token. The dashboard walks you through it:

  1. Open Add agent on the Agents page and give it a recognisable name, something like paris-edge-01 or factory-floor-vpn.
  2. Click Create agent. The token is issued at that moment and shown once; copy it into your password manager or secret store immediately. If you lose it, you can issue a new one from the agent's menu.
  3. Choose where the agent runs (Docker, Linux binary or Kubernetes/Helm). The dashboard generates the exact command for that platform, pre-filled with your token.
  4. Run the command on the host. When the agent sends its first heartbeat, the screen shows the connection and the time of that first heartbeat.
  5. Once connected, the last step offers a monitor that runs from the new agent.

If you need help running the agent in a more locked-down environment, contact our support team, we'll walk through the deployment with you.

Allowing internal addresses

By default the agent does not check targets in private IP ranges (10.x, 172.16-31.x, 192.168.x). A check against such a target comes back down with target validation failed … private or local IP addresses not allowed. To monitor internal services, start the agent with the ALLOW_PRIVATE_IPS=true environment variable. The command the dashboard generates does not include it; you add it yourself:

Install methodHow to add it
Dockeradd a -e ALLOW_PRIVATE_IPS=true \ line to the docker run command
Linux binaryput ALLOW_PRIVATE_IPS=true \ before the ./uptimewarden-agent line
Kubernetes (Helm)add --set agent.allowPrivateIPs=true to the helm install command

Connecting an agent to a monitor

Once the agent registers, it shows up as online on the Agents page. When you create or edit a monitor, pick that agent from the Check location dropdown, in the Private Agents group (the other options are Auto and Cloud Regions). From that moment on, only the chosen agent runs that monitor, our cloud locations stop checking it.

Check location:  Private Agents → paris-edge-01

The install flow ends here: once the agent is connected, an Add a monitor that runs from … button appears and opens the new-monitor form with that agent chosen.

Results from an agent follow the same slow-response rule as the rest of the product: the alert opens only after N slow checks in a row (N defaults to 3, the same number that confirms a recovery). A single slow check never alerts.

How checks run on an agent

Settings and retries

Monitors that run on an agent apply the HTTP method and Follow redirects settings too. On DNS monitors the record type, the resolver and the expected answers apply as well. If you run an agent version that ignores these settings (one that always sends GET and follows redirects for HTTP, and only queries the A record for DNS), update the agent.

A failed check is retried as many times as the monitor's Retry count says (a check makes at most 10 attempts). The wait between attempts does not hold up the agent's other checks.

Outbound proxy

If the agent leaves the network through an HTTP proxy (the HTTPS_PROXY, HTTP_PROXY and NO_PROXY environment variables), its calls to UptimeWarden go through that proxy. HTTP/HTTPS, WebSocket and MCP checks use the same proxy by default (check_proxy: env). TCP, UDP, DNS, ping, SSL and gRPC checks always connect directly.

Internal targets are always checked directly, whatever NO_PROXY says:

  • IP addresses in the private, loopback, link-local, CGNAT and ULA ranges
  • names without a dot (db, intranet) and localhost
  • names ending in .local, .internal, .cluster.local, .svc, .localdomain, .lan, .corp or .home.arpa
  • names that resolve, on the agent, only to such addresses (for example grafana.corp.example.com resolving to 10.0.4.7)

A name that does not resolve within 2 seconds, or resolves to any public address, goes through the proxy. To make every check connect directly, start the agent with AGENT_CHECK_PROXY=none (check_proxy: none in YAML); its calls to UptimeWarden keep using the proxy. If your UptimeWarden address is an internal one, add it to NO_PROXY. The variables are read once at startup, so restart the agent after changing them.

Ping and ICMP permission

A ping check uses ICMP. If the agent has no ICMP permission (for example in Kubernetes, when the pod has no NET_RAW capability), the check tries TCP ports 80, 443, 53 and 22 instead. From there:

  • Once the agent has reached a host (by ICMP or one of those ports), the ping goes down when the host no longer answers on any of the ports. After an agent restart, a host counts as reached if the last result this agent wrote in the past 7 days is up.
  • For a host the agent has never reached, it sends no result and the monitor keeps its last status. The agent cannot tell a host that only answers ICMP from a dead one.

To run ping over ICMP, give the agent's pod the NET_RAW capability.

Certificate expiry alerts

For HTTPS, WSS, gRPC and MCP monitors that run on an agent, certificate expiry alerts come from the agent's own SSL readings. The bands are the same as for cloud checks, see SSL Monitor.

Accepted results and the clock

UptimeWarden accepts an agent's results only for monitors assigned to that agent. A result for a monitor that has moved to another agent or to a cloud location is not stored. If the same results request is sent twice, the results are not stored twice.

If the agent machine's clock is ahead of the server, the timestamps of its results are moved back to the server clock. A result that reaches the server later than three times the check interval (at least 10 minutes) counts as history: it is stored but raises no alert. That happens when the API was unreachable for a long time, or when the agent's clock runs behind. Keep the agent machine's clock correct with NTP.

Watching agent health

The Agents page puts what is not being checked first. The status line at the top summarises offline and never-connected agents and the monitors nothing is checking; View the N monitors lists those monitors one by one. The table then shows every agent together with the monitors running from it and the ones not being checked:

ColumnWhat it tells you
AgentThe label you gave the agent
StatusOnline while a heartbeat has arrived in the last 2 minutes; Offline since 12:31 (1 h 49 min) after that; Never connected for an agent whose binary has not registered yet
Host · OS/archThe machine the agent runs on, and its operating system and architecture
VersionThe agent build it's running; — for a never-connected agent
Last seenWhen the agent last reported in; — for a never-connected agent
MonitorsThe monitors running from this agent; when the agent is not online, the active monitors it is not checking are counted here too

An agent that has never connected has no version and no last-seen time. The table shows those fields as —, never a made-up value, and never labels the agent offline with a time: its status reads Never connected. Online means a heartbeat arrived within the last two minutes; a stored status from earlier does not keep an agent online.

If an agent goes offline, the monitors bound to it pause, no checks, no incidents, until the agent reconnects. The page marks those monitors as not being checked, so it's obvious the silence is the agent, not your service. Checks resume the moment it comes back.

Rotating a token

If a token leaks or you have a periodic rotation policy:

  1. On the Agents page, open the agent's Rotate token option. Tokens are also listed in the folded API tokens panel lower on the page.
  2. A new token is generated, and the old one stays valid for a 24-hour grace period so rotation is zero-downtime.
  3. Update the agent with the new token, the install instructions screen has the exact command.

During the 24-hour grace window the agent keeps working on the old token, giving you time to roll out the new one; after that the old token expires automatically. Because the old token remains usable for up to 24 hours, rotation alone does not instantly cut off a leaked token. To kill a compromised token immediately, use the Delete token button next to it in the API tokens panel; the token is removed at once. You can also remove the agent with Delete agent.

Private-network safety

An agent has whatever network reach the host you put it on has, that's the point, but it deserves care:

  • Run agents in a dedicated network segment with the smallest possible egress.
  • Grant access only to the endpoints you intend to monitor.
  • ALLOW_PRIVATE_IPS=true opens private network ranges to the agent, so run it in a segment that can reach only the internal services you want to monitor. Loopback, link-local and cloud metadata addresses stay blocked even with it.
  • Forward agent logs to your central log system for auditing.

Cloud location vs private agent, when to use which

ScenarioCloud locationPrivate agent
Public websiteyes-
Public REST APIyes-
Database in a private networknoyes
Internal cluster servicenoyes
Customer-perceived latencyyesyes
Air-gapped factory equipmentnoyes
CDN edge nodeyes (nearest location)yes (ideal)

FAQ

Q: How many monitors can one agent handle? A: A single agent comfortably handles dozens of monitors at typical intervals. If you need more capacity, install additional agents, each gets its own token, and split your monitors across them.

Q: What happens if the agent goes down? A: The monitors bound to it stop checking until the agent reconnects. The dashboard marks it offline after about 2 minutes of silence so it's clear the agent itself is the issue. Checks resume the moment it comes back online.

Q: Can two agents check the same monitor in parallel? A: A monitor is bound to one agent at a time. For redundancy, run two agents and split the monitor pool between them.

Bu sayfayı Türkçe okuyun