[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-tr-proxy-performansini-izleme":3},{"success":4,"payload":5,"related":74,"errors":146},true,{"id":6,"slug":7,"title":8,"excerpt":9,"body_html":10,"meta_title":11,"meta_description":12,"canonical_url":13,"canonical_override":14,"og_title":15,"og_description":16,"og_image_url":17,"faq_json":18,"key_takeaways":28,"allow_index":33,"noindex_google_only":33,"allow_follow":4,"published_at":34,"updated_at":35,"content_updated_at":36,"featured_image_url":37,"featured_image_alt":14,"card_image_url":38,"reading_time_minutes":39,"author":40,"categories":44,"tags":51,"alternates":60,"locale_paths":72,"views":73},41,"proxy-performansini-izleme","Proxy Performansını İzleme: Gecikme, Başarı Oranı ve Uyarılar","Aracın, monitörün ve proxy performansına nasıl uyarılacağını öğrenin - yüzde geç saatler, başarı oranları, hata modelleri ve bant genişliği takip edin. Python, Node.js ve Go'daki kod örnekleri.","\u003Ch2>Neden Proxy Performansı\u003C\u002Fh2>\u003Cp>Proxy altyapısı sessiz bir şekilde başarısız olur. Yıkıcınız, herhangi bir fark etmeden önce% 40 başarı oranıyla saatlerce sürebilir. Yanıt süreleri ürpere, blok oranları artar ve veri kalitesi degradlar - tüm açık hataları tetiklemeksizin. İzleme, bu görünmez sorunları eylemlenebilir uyarılara dönüştürür.\u003C\u002Fp>\u003Cp>Bu kılavuz, proxy taleplerinizi nasıl tasarlayacağınızı gösterir, anlamlı ölçümler toplar, panolar inşa eder ve veri boru hattınızı etkilemeden önce bu rahatsız ediciliği ayarlar. Tüm örnekler kullanır \u003Ca href=\"\u002Ftr\u002Fblog\u002Fweb-scraping-icin-en-iyi-proxyler-2026\">ProxyHat'ın konut temsilcileri\u003C\u002Fa> Ve üretim hazır.\u003C\u002Fp>\u003Cblockquote>proxy performansını ölçmediyseniz, tahmin ediyorsunuz. ölçek maliyetlerinde tahmin edin ve güvenilmez veriler üretir.\u003C\u002Fblockquote>\u003Ch2>Keytriks to Track\u003C\u002Fh2>\u003Ctable>\n\u003Ccaption>Keytriks to Track\u003C\u002Fcaption>\u003Cthead>\u003Ctr>\u003Cth>Metrik\u003C\u002Fth>\u003Cth>What It Tells You\u003C\u002Fth>\u003Cth>Uyarı Threshold\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Başarı Puanı\u003C\u002Ftd>\u003Ctd>İsteklerin Yüzdesi 2xx statüsü döndürür\u003C\u002Ftd>\u003Ctd>Aşağıda% 90\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Cevap Latency (p50\u002Fp95\u002Fp99)\u003C\u002Ftd>\u003Ctd>Hızlı proxied talepleri nasıl tamamen tamamlanmış\u003C\u002Ftd>\u003Ctd>p95 yukarıda 10s\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Error Rate Tarafından Type\u003C\u002Ftd>\u003Ctd>Hangi hataları egemen (zaman, 403, 429, bağlantı)\u003C\u002Ftd>\u003Ctd>Yukarıdaki herhangi bir tek tip% 15\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>İkincil İstekler\u003C\u002Ftd>\u003Ctd>Yıkıcı boru hattınızın\u003C\u002Ftd>\u003Ctd>Aşağıda beklenen temel\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Band Wide Use\u003C\u002Ftd>\u003Ctd>Data transfer through proxy\u003C\u002Ftd>\u003Ctd>Yaklaşım planı limitleme\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Block Rate Tarafından Target\u003C\u002Ftd>\u003Ctd>Hangi hedefler sizi en çok bloke ediyor\u003C\u002Ftd>\u003Ctd>Herhangi bir hedef için% 20 Yukarıda\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Retry Rate\u003C\u002Ftd>\u003Ctd>Kaç tane istek yeniden kurulmalıdır\u003C\u002Ftd>\u003Ctd>Yüzde 30\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Oturum Yeniden Verimliliği\u003C\u002Ftd>\u003Ctd>Ne kadar uzun çubuk seansları hayatta kalır\u003C\u002Ftd>\u003Ctd>Aşağıda 5 istek ortalama\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch2>Python: Aletli Proxy Müşteri\u003C\u002Fh2>\u003Cp>Bu müşteri her isteği zamanlama, durum izleme ve yapılandırılmış giriş ile birleştirir.\u003C\u002Fp>\u003Cpre>\u003Ccode>import time\nimport uuid\nimport logging\nimport statistics\nfrom dataclasses import dataclass, field\nfrom collections import defaultdict\nfrom typing import Optional\nimport requests\nlogger = logging.getLogger(\"proxy_monitor\")\n@dataclass\nclass ProxyMetrics:\n    \"\"\"Collects and aggregates proxy performance metrics.\"\"\"\n    total_requests: int = 0\n    successful: int = 0\n    failed: int = 0\n    retries: int = 0\n    latencies: list = field(default_factory=list)\n    status_codes: dict = field(default_factory=lambda: defaultdict(int))\n    errors_by_type: dict = field(default_factory=lambda: defaultdict(int))\n    bytes_transferred: int = 0\n    requests_by_target: dict = field(default_factory=lambda: defaultdict(lambda: {\"success\": 0, \"failed\": 0}))\n    @property\n    def success_rate(self) -> float:\n        return (self.successful \u002F self.total_requests * 100) if self.total_requests > 0 else 0.0\n    @property\n    def p50_latency(self) -> float:\n        return statistics.median(self.latencies) if self.latencies else 0.0\n    @property\n    def p95_latency(self) -> float:\n        if not self.latencies:\n            return 0.0\n        sorted_lat = sorted(self.latencies)\n        idx = int(len(sorted_lat) * 0.95)\n        return sorted_lat[min(idx, len(sorted_lat) - 1)]\n    @property\n    def p99_latency(self) -> float:\n        if not self.latencies:\n            return 0.0\n        sorted_lat = sorted(self.latencies)\n        idx = int(len(sorted_lat) * 0.99)\n        return sorted_lat[min(idx, len(sorted_lat) - 1)]\n    def summary(self) -> dict:\n        return {\n            \"total_requests\": self.total_requests,\n            \"success_rate\": f\"{self.success_rate:.1f}%\",\n            \"p50_latency\": f\"{self.p50_latency:.3f}s\",\n            \"p95_latency\": f\"{self.p95_latency:.3f}s\",\n            \"p99_latency\": f\"{self.p99_latency:.3f}s\",\n            \"retries\": self.retries,\n            \"bytes_transferred\": self.bytes_transferred,\n            \"top_errors\": dict(sorted(\n                self.errors_by_type.items(),\n                key=lambda x: x[1], reverse=True\n            )[:5]),\n            \"status_distribution\": dict(self.status_codes),\n        }\nclass MonitoredProxyClient:\n    \"\"\"HTTP client with built-in proxy monitoring.\"\"\"\n    def __init__(self, max_retries: int = 3):\n        self.metrics = ProxyMetrics()\n        self.max_retries = max_retries\n        self._alert_callbacks = []\n    def on_alert(self, callback):\n        \"\"\"Register a callback for metric alerts.\"\"\"\n        self._alert_callbacks.append(callback)\n    def _check_alerts(self):\n        if self.metrics.total_requests \u003C 10:\n            return\n        alerts = []\n        if self.metrics.success_rate \u003C 90:\n            alerts.append(f\"Low success rate: {self.metrics.success_rate:.1f}%\")\n        if self.metrics.p95_latency > 10:\n            alerts.append(f\"High p95 latency: {self.metrics.p95_latency:.1f}s\")\n        if self.metrics.retries \u002F max(self.metrics.total_requests, 1) > 0.3:\n            alerts.append(f\"High retry rate: {self.metrics.retries}\u002F{self.metrics.total_requests}\")\n        for alert in alerts:\n            logger.warning(f\"ALERT: {alert}\")\n            for cb in self._alert_callbacks:\n                cb(alert)\n    def fetch(self, url: str, country: Optional[str] = None) -> Optional[requests.Response]:\n        from urllib.parse import urlparse\n        target_domain = urlparse(url).netloc\n        for attempt in range(self.max_retries + 1):\n            session_id = uuid.uuid4().hex[:8]\n            username = f\"USERNAME-sid-{session_id}\"\n            if country:\n                username += f\"-country-{country}\"\n            proxy = f\"http:\u002F\u002F{username}:PASSWORD@gate.proxyhat.com:8080\"\n            self.metrics.total_requests += 1\n            if attempt > 0:\n                self.metrics.retries += 1\n            start = time.time()\n            try:\n                response = requests.get(\n                    url,\n                    proxies={\"http\": proxy, \"https\": proxy},\n                    timeout=30,\n                )\n                latency = time.time() - start\n                self.metrics.latencies.append(latency)\n                self.metrics.status_codes[response.status_code] += 1\n                if response.status_code >= 400:\n                    self.metrics.errors_by_type[f\"HTTP_{response.status_code}\"] += 1\n                    self.metrics.requests_by_target[target_domain][\"failed\"] += 1\n                    if response.status_code in (403, 429, 503) and attempt \u003C self.max_retries:\n                        time.sleep(2 ** attempt)\n                        continue\n                    self.metrics.failed += 1\n                else:\n                    self.metrics.successful += 1\n                    self.metrics.bytes_transferred += len(response.content)\n                    self.metrics.requests_by_target[target_domain][\"success\"] += 1\n                self._check_alerts()\n                return response\n            except requests.exceptions.Timeout:\n                self.metrics.errors_by_type[\"timeout\"] += 1\n                self.metrics.latencies.append(time.time() - start)\n                self.metrics.requests_by_target[target_domain][\"failed\"] += 1\n            except requests.exceptions.ConnectionError:\n                self.metrics.errors_by_type[\"connection_error\"] += 1\n                self.metrics.latencies.append(time.time() - start)\n                self.metrics.requests_by_target[target_domain][\"failed\"] += 1\n            except Exception as e:\n                self.metrics.errors_by_type[type(e).__name__] += 1\n                self.metrics.latencies.append(time.time() - start)\n            if attempt \u003C self.max_retries:\n                time.sleep(2 ** attempt)\n        self.metrics.failed += 1\n        self._check_alerts()\n        return None\n# Usage\nclient = MonitoredProxyClient(max_retries=3)\nclient.on_alert(lambda msg: print(f\"[ALERT] {msg}\"))\nurls = [f\"https:\u002F\u002Fexample.com\u002Fproduct\u002F{i}\" for i in range(100)]\nfor url in urls:\n    response = client.fetch(url)\nprint(client.metrics.summary())\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Node.js: Aletli Proxy Müşteri\u003C\u002Fh2>\u003Cpre>\u003Ccode>const crypto = require('crypto');\nconst { HttpsProxyAgent } = require('https-proxy-agent');\nconst { EventEmitter } = require('events');\nclass ProxyMetrics {\n  constructor() {\n    this.totalRequests = 0;\n    this.successful = 0;\n    this.failed = 0;\n    this.retries = 0;\n    this.latencies = [];\n    this.statusCodes = {};\n    this.errorsByType = {};\n    this.bytesTransferred = 0;\n    this.requestsByTarget = {};\n  }\n  get successRate() {\n    return this.totalRequests > 0\n      ? ((this.successful \u002F this.totalRequests) * 100).toFixed(1)\n      : '0.0';\n  }\n  percentile(p) {\n    if (this.latencies.length === 0) return 0;\n    const sorted = [...this.latencies].sort((a, b) => a - b);\n    const idx = Math.min(\n      Math.floor(sorted.length * (p \u002F 100)),\n      sorted.length - 1\n    );\n    return sorted[idx];\n  }\n  summary() {\n    return {\n      totalRequests: this.totalRequests,\n      successRate: `${this.successRate}%`,\n      p50Latency: `${this.percentile(50).toFixed(3)}s`,\n      p95Latency: `${this.percentile(95).toFixed(3)}s`,\n      p99Latency: `${this.percentile(99).toFixed(3)}s`,\n      retries: this.retries,\n      bytesTransferred: this.bytesTransferred,\n      statusDistribution: { ...this.statusCodes },\n      topErrors: Object.entries(this.errorsByType)\n        .sort(([, a], [, b]) => b - a)\n        .slice(0, 5)\n        .reduce((obj, [k, v]) => ({ ...obj, [k]: v }), {}),\n    };\n  }\n}\nclass MonitoredProxyClient extends EventEmitter {\n  constructor({ maxRetries = 3 } = {}) {\n    super();\n    this.metrics = new ProxyMetrics();\n    this.maxRetries = maxRetries;\n  }\n  _checkAlerts() {\n    if (this.metrics.totalRequests \u003C 10) return;\n    if (parseFloat(this.metrics.successRate) \u003C 90) {\n      this.emit('alert', `Low success rate: ${this.metrics.successRate}%`);\n    }\n    if (this.metrics.percentile(95) > 10) {\n      this.emit('alert', `High p95 latency: ${this.metrics.percentile(95).toFixed(1)}s`);\n    }\n  }\n  async fetch(url, { country } = {}) {\n    const targetDomain = new URL(url).hostname;\n    for (let attempt = 0; attempt \u003C= this.maxRetries; attempt++) {\n      const sessionId = crypto.randomBytes(4).toString('hex');\n      let username = `USERNAME-sid-${sessionId}`;\n      if (country) username += `-country-${country}`;\n      const agent = new HttpsProxyAgent(\n        `http:\u002F\u002F${username}:PASSWORD@gate.proxyhat.com:8080`\n      );\n      this.metrics.totalRequests++;\n      if (attempt > 0) this.metrics.retries++;\n      const startTime = Date.now();\n      try {\n        const response = await fetch(url, {\n          agent,\n          signal: AbortSignal.timeout(30000),\n        });\n        const latency = (Date.now() - startTime) \u002F 1000;\n        this.metrics.latencies.push(latency);\n        this.metrics.statusCodes[response.status] =\n          (this.metrics.statusCodes[response.status] || 0) + 1;\n        if (response.status >= 400) {\n          this.metrics.errorsByType[`HTTP_${response.status}`] =\n            (this.metrics.errorsByType[`HTTP_${response.status}`] || 0) + 1;\n          if ([403, 429, 503].includes(response.status) && attempt \u003C this.maxRetries) {\n            await new Promise(r => setTimeout(r, 1000 * Math.pow(2, attempt)));\n            continue;\n          }\n          this.metrics.failed++;\n        } else {\n          this.metrics.successful++;\n          const body = await response.text();\n          this.metrics.bytesTransferred += body.length;\n        }\n        this._checkAlerts();\n        return response;\n      } catch (err) {\n        const latency = (Date.now() - startTime) \u002F 1000;\n        this.metrics.latencies.push(latency);\n        this.metrics.errorsByType[err.name] =\n          (this.metrics.errorsByType[err.name] || 0) + 1;\n        if (attempt \u003C this.maxRetries) {\n          await new Promise(r => setTimeout(r, 1000 * Math.pow(2, attempt)));\n          continue;\n        }\n        this.metrics.failed++;\n      }\n    }\n    this._checkAlerts();\n    return null;\n  }\n}\n\u002F\u002F Usage\nconst client = new MonitoredProxyClient({ maxRetries: 3 });\nclient.on('alert', msg => console.warn(`[ALERT] ${msg}`));\nconst urls = Array.from({ length: 100 }, (_, i) =>\n  `https:\u002F\u002Fexample.com\u002Fproduct\u002F${i + 1}`\n);\nfor (const url of urls) {\n  await client.fetch(url);\n}\nconsole.log(client.metrics.summary());\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Go: Aletli Proxy Müşteri\u003C\u002Fh2>\u003Cpre>\u003Ccode>package main\nimport (\n\t\"crypto\u002Frand\"\n\t\"encoding\u002Fhex\"\n\t\"fmt\"\n\t\"io\"\n\t\"math\"\n\t\"net\u002Fhttp\"\n\t\"net\u002Furl\"\n\t\"sort\"\n\t\"sync\"\n\t\"time\"\n)\ntype Metrics struct {\n\tmu             sync.Mutex\n\tTotalRequests  int\n\tSuccessful     int\n\tFailed         int\n\tRetries        int\n\tLatencies      []float64\n\tStatusCodes    map[int]int\n\tErrorsByType   map[string]int\n\tBytesTransferred int64\n}\nfunc NewMetrics() *Metrics {\n\treturn &Metrics{\n\t\tStatusCodes:  make(map[int]int),\n\t\tErrorsByType: make(map[string]int),\n\t}\n}\nfunc (m *Metrics) RecordSuccess(latency float64, status int, bytes int) {\n\tm.mu.Lock()\n\tdefer m.mu.Unlock()\n\tm.TotalRequests++\n\tm.Successful++\n\tm.Latencies = append(m.Latencies, latency)\n\tm.StatusCodes[status]++\n\tm.BytesTransferred += int64(bytes)\n}\nfunc (m *Metrics) RecordFailure(latency float64, errType string) {\n\tm.mu.Lock()\n\tdefer m.mu.Unlock()\n\tm.TotalRequests++\n\tm.Failed++\n\tm.Latencies = append(m.Latencies, latency)\n\tm.ErrorsByType[errType]++\n}\nfunc (m *Metrics) Percentile(p float64) float64 {\n\tm.mu.Lock()\n\tdefer m.mu.Unlock()\n\tif len(m.Latencies) == 0 {\n\t\treturn 0\n\t}\n\tsorted := make([]float64, len(m.Latencies))\n\tcopy(sorted, m.Latencies)\n\tsort.Float64s(sorted)\n\tidx := int(math.Min(float64(len(sorted)-1), float64(len(sorted))*p\u002F100))\n\treturn sorted[idx]\n}\nfunc (m *Metrics) SuccessRate() float64 {\n\tm.mu.Lock()\n\tdefer m.mu.Unlock()\n\tif m.TotalRequests == 0 {\n\t\treturn 0\n\t}\n\treturn float64(m.Successful) \u002F float64(m.TotalRequests) * 100\n}\nfunc (m *Metrics) Summary() string {\n\treturn fmt.Sprintf(\n\t\t\"Requests: %d | Success: %.1f%% | p50: %.3fs | p95: %.3fs | p99: %.3fs | Retries: %d\",\n\t\tm.TotalRequests, m.SuccessRate(),\n\t\tm.Percentile(50), m.Percentile(95), m.Percentile(99),\n\t\tm.Retries,\n\t)\n}\ntype MonitoredClient struct {\n\tmetrics    *Metrics\n\tmaxRetries int\n}\nfunc NewMonitoredClient(maxRetries int) *MonitoredClient {\n\treturn &MonitoredClient{\n\t\tmetrics:    NewMetrics(),\n\t\tmaxRetries: maxRetries,\n\t}\n}\nfunc (c *MonitoredClient) Fetch(target string) (*http.Response, error) {\n\tfor attempt := 0; attempt \u003C= c.maxRetries; attempt++ {\n\t\tb := make([]byte, 4)\n\t\trand.Read(b)\n\t\tsessionID := hex.EncodeToString(b)\n\t\tproxyStr := fmt.Sprintf(\n\t\t\t\"http:\u002F\u002FUSERNAME-sid-%s:PASSWORD@gate.proxyhat.com:8080\",\n\t\t\tsessionID,\n\t\t)\n\t\tproxyURL, _ := url.Parse(proxyStr)\n\t\tclient := &http.Client{\n\t\t\tTransport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},\n\t\t\tTimeout:   30 * time.Second,\n\t\t}\n\t\tif attempt > 0 {\n\t\t\tc.metrics.mu.Lock()\n\t\t\tc.metrics.Retries++\n\t\t\tc.metrics.mu.Unlock()\n\t\t}\n\t\tstart := time.Now()\n\t\tresp, err := client.Get(target)\n\t\tlatency := time.Since(start).Seconds()\n\t\tif err != nil {\n\t\t\tc.metrics.RecordFailure(latency, \"connection_error\")\n\t\t\tif attempt \u003C c.maxRetries {\n\t\t\t\ttime.Sleep(time.Duration(math.Pow(2, float64(attempt))) * time.Second)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn nil, err\n\t\t}\n\t\tbody, _ := io.ReadAll(resp.Body)\n\t\tresp.Body.Close()\n\t\tif resp.StatusCode >= 400 {\n\t\t\tc.metrics.RecordFailure(latency, fmt.Sprintf(\"HTTP_%d\", resp.StatusCode))\n\t\t\tif attempt \u003C c.maxRetries {\n\t\t\t\ttime.Sleep(time.Duration(math.Pow(2, float64(attempt))) * time.Second)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t} else {\n\t\t\tc.metrics.RecordSuccess(latency, resp.StatusCode, len(body))\n\t\t}\n\t\treturn resp, nil\n\t}\n\treturn nil, fmt.Errorf(\"all retries exhausted for %s\", target)\n}\nfunc main() {\n\tclient := NewMonitoredClient(3)\n\tfor i := 0; i \u003C 50; i++ {\n\t\turl := fmt.Sprintf(\"https:\u002F\u002Fexample.com\u002Fproduct\u002F%d\", i+1)\n\t\tclient.Fetch(url)\n\t}\n\tfmt.Println(client.metrics.Summary())\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Proxy Requests için Yapılı Logging\u003C\u002Fh2>\u003Cp>JSON-yapılı loglar, dağıtılmış hurdalar arasındaki proxy performansını toplamak ve analiz etmek kolaylaşır.\u003C\u002Fp>\u003Cpre>\u003Ccode>import json\nimport logging\nimport time\nimport uuid\nimport requests\nclass JSONProxyLogger:\n    \"\"\"Logs every proxy request as structured JSON.\"\"\"\n    def __init__(self, log_file: str = \"proxy_requests.jsonl\"):\n        self.logger = logging.getLogger(\"proxy_json\")\n        handler = logging.FileHandler(log_file)\n        handler.setFormatter(logging.Formatter(\"%(message)s\"))\n        self.logger.addHandler(handler)\n        self.logger.setLevel(logging.INFO)\n    def log_request(self, entry: dict):\n        self.logger.info(json.dumps(entry))\n    def fetch(self, url: str, country: str = None) -> requests.Response:\n        session_id = uuid.uuid4().hex[:8]\n        username = f\"USERNAME-sid-{session_id}\"\n        if country:\n            username += f\"-country-{country}\"\n        proxy = f\"http:\u002F\u002F{username}:PASSWORD@gate.proxyhat.com:8080\"\n        start = time.time()\n        try:\n            response = requests.get(\n                url,\n                proxies={\"http\": proxy, \"https\": proxy},\n                timeout=30,\n            )\n            latency = time.time() - start\n            self.log_request({\n                \"timestamp\": time.strftime(\"%Y-%m-%dT%H:%M:%SZ\", time.gmtime()),\n                \"url\": url,\n                \"status\": response.status_code,\n                \"latency_ms\": round(latency * 1000),\n                \"bytes\": len(response.content),\n                \"session_id\": session_id,\n                \"country\": country,\n                \"success\": response.status_code \u003C 400,\n            })\n            return response\n        except Exception as e:\n            latency = time.time() - start\n            self.log_request({\n                \"timestamp\": time.strftime(\"%Y-%m-%dT%H:%M:%SZ\", time.gmtime()),\n                \"url\": url,\n                \"error\": str(e),\n                \"error_type\": type(e).__name__,\n                \"latency_ms\": round(latency * 1000),\n                \"session_id\": session_id,\n                \"country\": country,\n                \"success\": False,\n            })\n            raise\n# Usage — logs produce JSONL like:\n# {\"timestamp\":\"2026-02-26T10:30:00Z\",\"url\":\"https:\u002F\u002F...\",\"status\":200,\"latency_ms\":1234,...}\nproxy_logger = JSONProxyLogger(\"proxy_requests.jsonl\")\nresponse = proxy_logger.fetch(\"https:\u002F\u002Fexample.com\u002Fdata\", country=\"us\")\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Periyodik Sağlık Raporları\u003C\u002Fh2>\u003Cp>Uzun süren kazıcılar için, sabit pencereler üzerinden özetlenen periyodik sağlık raporları üretir.\u003C\u002Fp>\u003Cpre>\u003Ccode>import time\nimport threading\nfrom datetime import datetime\nclass PeriodicReporter:\n    \"\"\"Generates periodic performance reports from proxy metrics.\"\"\"\n    def __init__(self, metrics: ProxyMetrics, interval_seconds: int = 60):\n        self.metrics = metrics\n        self.interval = interval_seconds\n        self._running = False\n        self._thread = None\n        self._last_snapshot = None\n    def start(self):\n        self._running = True\n        self._last_snapshot = self._snapshot()\n        self._thread = threading.Thread(target=self._report_loop, daemon=True)\n        self._thread.start()\n    def stop(self):\n        self._running = False\n    def _snapshot(self) -> dict:\n        return {\n            \"total\": self.metrics.total_requests,\n            \"success\": self.metrics.successful,\n            \"failed\": self.metrics.failed,\n            \"retries\": self.metrics.retries,\n            \"time\": time.time(),\n        }\n    def _report_loop(self):\n        while self._running:\n            time.sleep(self.interval)\n            current = self._snapshot()\n            prev = self._last_snapshot\n            elapsed = current[\"time\"] - prev[\"time\"]\n            requests_delta = current[\"total\"] - prev[\"total\"]\n            success_delta = current[\"success\"] - prev[\"success\"]\n            failed_delta = current[\"failed\"] - prev[\"failed\"]\n            rps = requests_delta \u002F elapsed if elapsed > 0 else 0\n            window_success_rate = (\n                (success_delta \u002F requests_delta * 100)\n                if requests_delta > 0 else 0\n            )\n            report = {\n                \"window\": f\"{self.interval}s\",\n                \"timestamp\": datetime.utcnow().isoformat(),\n                \"requests\": requests_delta,\n                \"rps\": round(rps, 1),\n                \"success_rate\": f\"{window_success_rate:.1f}%\",\n                \"failed\": failed_delta,\n                \"cumulative_success_rate\": f\"{self.metrics.success_rate:.1f}%\",\n                \"p95_latency\": f\"{self.metrics.p95_latency:.3f}s\",\n            }\n            print(f\"[REPORT] {report}\")\n            self._last_snapshot = current\n# Usage with MonitoredProxyClient\nclient = MonitoredProxyClient(max_retries=3)\nreporter = PeriodicReporter(client.metrics, interval_seconds=30)\nreporter.start()\n# Scrape away — reports print every 30 seconds\nfor url in urls:\n    client.fetch(url)\nreporter.stop()\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Uyarı Kuralları ve Thresholds\u003C\u002Fh2>\u003Cp>Sıcak dönemler ve geçici blips sırasında yanlış pozitiflerden kaçınan akıllı uyarıları ayarlayın.\u003C\u002Fp>\u003Ctable>\n\u003Ccaption>Uyarı Kuralları ve Thresholds\u003C\u002Fcaption>\u003Cthead>\u003Ctr>\u003Cth>Uyarı\u003C\u002Fth>\u003Cth>Durum\u003C\u002Fth>\u003Cth>Cooldown\u003C\u002Fth>\u003Cth>Eylem\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Düşük Başarı Puanı\u003C\u002Ftd>\u003Ctd>Aşağıda% 90 5 dakikalık pencere\u003C\u002Ftd>\u003Ctd>10 dakika\u003C\u002Ftd>\u003Ctd>Hedef blokları araştırın, proxy havuzu kontrol edin\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Yüksek Latency\u003C\u002Ftd>\u003Ctd>p95 Yukarıda 10s over 2 dakikalık pencere pencere pencere\u003C\u002Ftd>\u003Ctd>5 dakika\u003C\u002Ftd>\u003Ctd>Yeterliliği azaltın, hedef sağlık kontrol edin\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Error Spike\u003C\u002Ftd>\u003Ctd>Tek hata türü isteklerin% 20'sini aşıyor\u003C\u002Ftd>\u003Ctd>5 dakika\u003C\u002Ftd>\u003Ctd>Hedef değiştiyse kontrol edin, geo location\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Band Wide Spike\u003C\u002Ftd>\u003Ctd>Transfer oranı temelden iki kat\u003C\u002Ftd>\u003Ctd>15 dakika\u003C\u002Ftd>\u003Ctd>Beklenilen davranışı doğrulayın, döngü yönlendirmeleri için kontrol edin\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Zero Throughput\u003C\u002Ftd>\u003Ctd>2 dakika içinde başarılı bir istek yok\u003C\u002Ftd>\u003Ctd>2 min\u003C\u002Ftd>\u003Ctd>Kontrol bağlantı, kimlik doğrulama\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cblockquote>İyi izleme, aylarca güvenilir çalışan bir boru hattı arasındaki fark ve sessizce çöp verileri üreten biri. Ekrana yatırım yapın - erken yakaladığınız ilk üretim olayında kendi başına öder.\u003C\u002Fblockquote>\u003Cp>Bu metrikleri besleyen orta dikkat için, bakınız \u003Ca href=\"\u002Ftr\u002Fblog\u002Fscraping-icin-proxy-middleware-katmani\">Bir Proxy Ortaware Katmanı\u003C\u002Fa>İzlemenin yanı sıra transkriptin optimizasyonu için, oku \u003Ca href=\"\u002Ftr\u002Fblog\u002Fproxy-isteklerini-esazamanlilik-ile-olceklendirme\">Proxy Requests with Concurrency Control\u003C\u002Fa>. Tam sistem tasarımı için, bakınız \u003Ca href=\"\u002Ftr\u002Fblog\u002Fguvenilir-scraping-mimarisi-tasarlama\">Güvenilir bir avlama mimarisi tasarımı\u003C\u002Fa>.\u003C\u002Fp>\u003Cp>Keşfedin \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fpython-sdk\">Python SDK\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fnode-sdk\">Node SDK\u003C\u002Fa>Ve \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fgo-sdk\">Go SDK\u003C\u002Fa> Bütünleme için veya kontrol edin \u003Ca href=\"\u002Ftr\u002Fpricing\">ProxyHat pricing\u003C\u002Fa> ve \u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\">Belge belgeleri\u003C\u002Fa> Başlamak için.\u003C\u002Fp>","Proxy Performans İzleme Rehberi","Proxy performansını izleme rehberi. Gecikme ölçümü, başarı oranı takibi, uyarı sistemleri ve proxy optimizasyon stratejileri.","\u002Ftr\u002Fblog\u002Fproxy-performansini-izleme",null,"Proxy Performansını İzleme","Proxy performans izleme: gecikme, başarı oranı, uyarı sistemleri ve optimizasyon stratejileri.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-performansini-izleme-og.webp",[19,22,25],{"question":20,"answer":21},"Proxy performansında hangi metrikleri izlemeliyim?","Temel metrikler: başarı oranı (başarılı istek yüzdesi), ortalama gecikme (yanıt süresi), p95\u002Fp99 gecikme, istek başına bant genişliği, hata türleri dağılımı (zaman aşımı, bağlantı reddi, 403\u002F429 yanıtlar) ve proxy havuzu kullanım oranı.",{"question":23,"answer":24},"Proxy performans düşüşünü nasıl tespit ederim?","Başarı oranı eşik değerinin altına düştüğünde (örn: %90), gecikme anormal arttığında, belirli hedef sitelerde hata oranı yükseldiğinde veya bant genişliği tüketimi beklenenden farklı olduğunda uyarılar tetikleyin. Grafana veya benzeri araçlarla pano oluşturun.",{"question":26,"answer":27},"Proxy performansını nasıl optimize ederim?","Başarısız proxy'leri havuzdan geçici olarak çıkarın, coğrafi olarak hedefe yakın proxy'leri tercih edin, eşzamanlılık seviyesini başarı oranına göre ayarlayın, bağlantı havuzu (connection pooling) kullanarak bağlantı kurulum süresini azaltın ve HTTP\u002F2 desteği olan proxy'leri tercih edin.",[29,30,31,32],"Proxy altyapısı sessizce başarısız olabileceği için performans izleme ve uyarı sistemleri hayati önem taşır.","Başarı oranı, gecikme süreleri (p50\u002Fp95\u002Fp99), hata türleri ve blok oranları gibi temel metrikler düzenli takip edilmelidir.","Başarı oranı %90'ın altına düştüğünde veya p95 gecikmesi 10 saniyeyi aştığında otomatik uyarılar tetiklenmelidir.","Python, Node.js ve Go dillerinde yazılmış istemcilerle proxy performansını ölçen ve hataları kaydeden sistemler kurulabilir.",false,"2026-02-15T00:39:23+00:00","2026-07-19T03:13:07+00:00","2026-10-03T08:21:21+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-performansini-izleme-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-performansini-izleme-card.webp",11,{"name":41,"slug":42,"bio":43,"avatar_url":14,"website_url":14,"social_links":14},"ProxyHat Team","proxyhat-team","The ProxyHat editorial team covers proxies, web scraping, and data extraction.",[45],{"id":46,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},4,"gelistirici-rehberleri","Geliştirici Rehberleri","Geliştirici Rehberleri | ProxyHat Blog","Proxy entegrasyonu için kod eğitimleri ve SDK rehberleri.",[52,56],{"id":53,"slug":54,"name":55},1,"web-scraping","Web Scraping",{"id":57,"slug":58,"name":59},12,"sdk","SDK",{"en":61,"it":62,"tr":13,"pt":63,"ru":64,"es":65,"pl":66,"de":67,"fr":68,"zh":69,"ja":70,"ko":71,"x-default":61},"\u002Fblog\u002Fmonitoring-proxy-performance","\u002Fit\u002Fblog\u002Fmonitoraggio-delle-prestazioni-del-proxy-latenza-il-tasso-di-successo-e-gli-avvisi","\u002Fpt\u002Fblog\u002Fmonitorando-desempenho-de-proxy","\u002Fru\u002Fblog\u002Fmonitoring-proizvoditelnosti-proksi","\u002Fes\u002Fblog\u002Fmonitoreo-rendimiento-proxy","\u002Fpl\u002Fblog\u002Fmonitorowanie-wydajnosci-proxy-opoznienie-wskaznik-sukcesu-i-alerty","\u002Fde\u002Fblog\u002Fproxy-performance-ueberwachen","\u002Ffr\u002Fblog\u002Fsurveiller-la-performance-des-proxies","\u002Fcn\u002Fblog\u002Fjiankong-daili-xingneng","\u002Fja\u002Fblog\u002Fprokishi-pafoomansu-no-kanshi","\u002Fko\u002Fblog\u002Fproxy-seongneung-monitoring",{"en":61,"it":62,"tr":13,"pt":63,"ru":64,"es":65,"pl":66,"de":67,"fr":68,"zh":69,"ja":70,"ko":71},75,[75,92,112,129],{"id":76,"slug":77,"title":78,"excerpt":79,"featured_image_url":80,"featured_image_alt":14,"card_image_url":81,"og_image_url":82,"published_at":83,"updated_at":35,"content_updated_at":84,"reading_time_minutes":57,"is_featured":33,"indexable":33,"views":85,"author":86,"categories":87,"tags":89},50,"guvenilir-scraping-mimarisi-tasarlama","Güvenilir Bir Scraping Mimarisi Tasarlama","Bir end-to-end scraping sistemi tasarlayın: programcı, URL kuyruğu, tarama havuzu, proxy katmanı, ., depolama ve izleme. mimarlık diyagramları ile üretim-okuy Python kodu.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fguvenilir-scraping-mimarisi-tasarlama-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fguvenilir-scraping-mimarisi-tasarlama-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fguvenilir-scraping-mimarisi-tasarlama-og.webp","2026-02-24T06:55:16+00:00","2026-10-03T08:21:36+00:00",68,{"name":41,"slug":42,"bio":43,"avatar_url":14,"website_url":14,"social_links":14},[88],{"id":46,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},[90,91],{"id":57,"slug":58,"name":59},{"id":53,"slug":54,"name":55},{"id":93,"slug":94,"title":95,"excerpt":96,"featured_image_url":97,"featured_image_alt":14,"card_image_url":98,"og_image_url":99,"published_at":100,"updated_at":35,"content_updated_at":101,"reading_time_minutes":102,"is_featured":33,"indexable":33,"views":103,"author":104,"categories":105,"tags":109},36,"scraping-altyapisini-olceklendirme","Scraping Altyapısını Nasıl Ölçeklendirirsiniz","Web dökmesi için mimari desenler: kuyruk tabanlı sistemler, boru hatları tasarımı, konteynerlerle yatay ölçeklendirme ve proxy yönetimi. Python, Node.js ve Go.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-altyapisini-olceklendirme-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-altyapisini-olceklendirme-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-altyapisini-olceklendirme-og.webp","2026-02-09T14:42:34+00:00","2026-02-26T00:30:26+00:00",10,49,{"name":41,"slug":42,"bio":43,"avatar_url":14,"website_url":14,"social_links":14},[106],{"id":53,"slug":54,"name":55,"description":14,"meta_title":107,"meta_description":108,"parent_id":14},"Web Scraping Rehberleri | ProxyHat Blog","Web scraping teknikleri, proxy stratejileri ve veri çıkarma en iyi uygulamaları.",[110,111],{"id":53,"slug":54,"name":55},{"id":57,"slug":58,"name":59},{"id":113,"slug":114,"title":115,"excerpt":116,"featured_image_url":117,"featured_image_alt":14,"card_image_url":118,"og_image_url":119,"published_at":120,"updated_at":35,"content_updated_at":121,"reading_time_minutes":57,"is_featured":33,"indexable":33,"views":122,"author":123,"categories":124,"tags":126},35,"proxy-isteklerini-esazamanlilik-ile-olceklendirme","Proxy İsteklerini Eşzamanlılık Kontrolü ile Ölçeklendirme","Proxy tabanlı kazı için yüksek yeterlilik modelleri: asyncio semaphores, Promise havuzları, Go işçi havuzları, oran limitleri ve geri baskı. Python'da üretim kodu, Node.js ve Go.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-isteklerini-esazamanlilik-ile-olceklendirme-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-isteklerini-esazamanlilik-ile-olceklendirme-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-isteklerini-esazamanlilik-ile-olceklendirme-og.webp","2026-02-08T11:16:13+00:00","2026-10-03T08:21:35+00:00",358,{"name":41,"slug":42,"bio":43,"avatar_url":14,"website_url":14,"social_links":14},[125],{"id":46,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},[127,128],{"id":57,"slug":58,"name":59},{"id":53,"slug":54,"name":55},{"id":130,"slug":131,"title":132,"excerpt":133,"featured_image_url":134,"featured_image_alt":14,"card_image_url":135,"og_image_url":136,"published_at":137,"updated_at":35,"content_updated_at":138,"reading_time_minutes":57,"is_featured":33,"indexable":33,"views":139,"author":140,"categories":141,"tags":143},29,"scraping-icin-proxy-middleware-katmani","Scraping için Proxy Middleware Katmanı Oluşturma","Tasarım ve yeniden deneme mantığı, yük devretme ve metrikleri ile bir üretim fazı ortaware katmanı inşa edin. Python ve Node.js'ta ProxyHat kullanarak uygulamaları tamamlayın.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-icin-proxy-middleware-katmani-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-icin-proxy-middleware-katmani-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-icin-proxy-middleware-katmani-og.webp","2026-02-02T07:15:32+00:00","2026-10-03T08:21:27+00:00",44,{"name":41,"slug":42,"bio":43,"avatar_url":14,"website_url":14,"social_links":14},[142],{"id":46,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},[144,145],{"id":57,"slug":58,"name":59},{"id":53,"slug":54,"name":55},[]]