A "200 OK" proves almost nothing: challenge pages, soft-404s and JSON error bodies all return 200. A pool monitor that counts status codes will tell you everything is fine on the day your scraper breaks. Measure four things instead:
| Metric | How to measure | Healthy |
|---|---|---|
| Content-verified success rate | Request a URL you control (or a stable page) and assert an anchor string in the body | > 95% |
| Latency percentiles | Record connect+read time per request, report p50 / p95 | p95 < 3 s |
| IP uniqueness | N requests via echo endpoint, count unique exit IPs | close to N for rotating pools |
| Geo / ASN mix | Sample ipinfo.io per exit, tally countries and ASN types | matches what you pay for |
A complete cron-able monitor
One file, stdlib + requests only, writes a JSON line per run so any trend tool can graph it:
#!/usr/bin/env python3
# pool_monitor.py — run from cron: */30 * * * *
import time, json, statistics, requests
from collections import Counter
PROXY = "http://USER:PASS@GATEWAY:PORT"
TARGET = "https://your-target.com/health" # must contain ANCHOR
ANCHOR = "ok"
ECHO = "https://api.ipify.org"
N = 30
def one(sess, url, anchor=None):
t0 = time.time()
r = sess.get(url, timeout=(5, 20))
ms = (time.time() - t0) * 1000
ok = (anchor is None) or (anchor in r.text)
return ok, ms
sess = requests.Session()
sess.proxies = {"http": PROXY, "https": PROXY}
lat, ok_n, ips = [], 0, Counter()
for _ in range(N):
try:
ok, ms = one(sess, TARGET, ANCHOR)
lat.append(ms)
ok_n += ok
ips[sess.get(ECHO, timeout=(5, 10)).text] += 1
except Exception:
lat.append(None)
ok_ms = [x for x in lat if x is not None]
report = {
"ts": time.time(),
"success_rate": round(ok_n / N, 3),
"p50_ms": round(statistics.median(ok_ms)) if ok_ms else None,
"p95_ms": round(sorted(ok_ms)[int(len(ok_ms)*0.95)-1]) if len(ok_ms) >= 20 else None,
"unique_ips": len(ips),
"requests": N,
}
print(json.dumps(report))
# alert thresholds
if report["success_rate"] < 0.9 or report["unique_ips"] < N * 0.8:
exit(2) # non-zero exit = cron mail / alert hook
Session for simplicity. For a rotating gateway that rotates per session token, drop and recreate the session each iteration so every request lands on a fresh IP — otherwise your uniqueness metric measures your own connection reuse, not the pool.Reading the numbers
- Success rate drops but latency is fine — auth/quota/whitelist problem, or the target hardened its checks. Compare a direct (no-proxy) fetch to isolate.
- Uniqueness collapses — you are hitting a sticky/session endpoint, or the pool is smaller than advertised. Re-run with fresh session tokens per request.
- p95 explodes while p50 holds — a minority of exits is near-dead; your retry layer can absorb it, but report it to the provider with the data.
- Geo mix drifts — the pool substituted countries. If your use case needs specific geos, alert on it.
Alerting that means something
Thresholds from the table above are starting points; tune them against a week of your own data. Wire the exit code into whatever you already run: cron mail, healthchecks.io, or a Slack webhook on the JSON line. Keep 30 days of history — it turns provider disputes ("the pool is fine") into a one-screenshot conversation.
FAQ
Why is status-code-based monitoring useless for proxies?
Because challenge pages, soft-404s and error JSON all return 200. Only asserting an expected anchor string in the body separates a real success from a block page.
How often should I run pool health checks?
Every 15-30 minutes is enough for trend detection; add a fast 3-request probe every 5 minutes if a scraping operation depends on the pool in real time.
What success rate should I expect from a residential pool?
Content-verified success above 95% is a reasonable expectation for a healthy pool; sustained readings below 90% justify a support ticket with your measured data.
How do I measure how many IPs a provider really has?
Send a large batch of requests through one rotating entry with a fresh session token each, echo the exit IP of every request, and count unique IPs. IPLight publishes exactly this measurement in its daily live pool report.
Want a reference for what a healthy pool looks like? IPLight publishes its measured pool depth — 215,000+ live IPs, 170+ countries — in the live pool report, updated daily. Plans from $1.20/GB.