モニター
A monitor issues health monitor requests at regular intervals to evaluate the health of each endpoint within a pool.
When a pool becomes unhealthy, your load balancer takes that pool out of the endpoint rotation.
flowchart RL
accTitle: Load balancing monitor flow
accDescr: Monitors issue health monitor requests, which validate the current status of servers within each pool.
Monitor -- Health Monitor ----> Endpoint2
Endpoint2 -- Response ----> Monitor
subgraph Pool
Endpoint1((Endpoint 1))
Endpoint2((Endpoint 2))
end
ヘルスモニターのリクエストでエンドポイントのステータスが変更された場合、それはロードバランシングのイベントログにイベントとして記録されます。
モニターのプロパティの最新リストについては、APIドキュメントのモニターのプロパティを参照してください。
ステップバイステップのガイダンスについては、モニターの作成を参照してください。
モニターをプールにアタッチするとき、報告の精度を高めるために複数の地域を選択できます。
For each option selected in a pool’s Health Monitor Regions, Cloudflare sends health monitor requests from three separate data centers in that region.

If the majority of data centers for that region pass the health monitor requests, that region is considered healthy. If the majority of regions is healthy, then the endpoint itself will be considered healthy.
All Data Centers (Enterprise only)
Health monitor probes are sent from every single data center in Cloudflare’s network to the endpoints within the associated pool. This allows probes to hit each endpoint during intervals set by the customer.
All Regions
Three health monitor probes per region are sent to each endpoint in the associated pool. There are a total of 13 regions, resulting in 39 probes.
Regional
Three health monitor probes are sent from each specified region within the pool configuration.
ヘルスモニターのリクエストで使用されるホストヘッダーは、モニター自体で設定するか、プール内のエンドポイントで設定することができます。
モニターとエンドポイントの両方でホストヘッダーが指定されている場合、エンドポイントで設定されたホストヘッダーがモニターで設定されたホストヘッダーに優先します。
ホストヘッダーが指定されていない場合、Cloudflareはエンドポイントで設定されたエンドポイントアドレスをヘルスモニターのリクエストのホストヘッダーとして使用します。
詳細については、HTTPホストヘッダーの上書きを参照してください。
Cloudflare APIは、モニターに対して以下のコマンドをサポートしています。例はユーザーレベルのエンドポイントに対して示されていますが、アカウントレベルのエンドポイントにも適用されます。
| コマンド | メソッド | エンドポイント |
|---|---|---|
| モニターの作成 | POST | accounts/:account_id/load_balancers/monitors |
| モニターの削除 | DELETE | accounts/:account_id/load_balancers/monitors/:id |
| モニターの一覧 | GET | accounts/:account_id/load_balancers/monitors |
| モニターの詳細 | GET | accounts/:account_id/load_balancers/monitors/:id |
| 特定のプロパティを上書き | PATCH | accounts/:account_id/load_balancers/monitors/:id |
| 既存のモニターを上書き | PUT | accounts/:account_id/load_balancers/monitors/:id |
| モニターのプレビュー | POST | accounts/:account_id/load_balancers/monitors/:id/preview |
Cloudflareのロードバランシングは、HTTP、HTTPS、TCP、UDP、ICMP、ICMP ping、およびSMTPの公開モニタリングをサポートしています。
ロードバランシングは、HTTP、HTTPS、およびTCPのプライベートモニタリングもサポートしています。