用 DumbMonit 监控 Cloudflare
Zones, tunnels, certificates, traffic errors and load balancer pools of a Cloudflare account, read through the Cloudflare API.
产品说明为英文,与产品内一致。页面标签使用您的语言。
DumbMonit 监控的内容
The zones of a Cloudflare account through the Cloudflare API: zones that are no longer active, tunnels that went down or degraded, certificates about to expire, a rise of 5xx responses and unhealthy load balancer pools. DumbMonit reads the API at api.cloudflare.com/client/v4 once a minute with a read-only API token sent as a bearer token. Only the list of zones is required; every other part (tunnels, certificates, traffic, load balancers) needs its own read permission and is skipped, without making the monitor fail, when the token lacks it or the plan does not include the feature. The calls made for each zone are limited to the first 50 active zones and sent five at a time, far below…
典型用途. Zones, tunnels, certificates, 5xx errors, load balancer pools
示例
- Cloudflare zones and tunnels
连接方式
您需要准备
- API tokenA Cloudflare API token with read-only permissions.
需要开放的网络端口
443/TCPCloudflare API (HTTPS, api.cloudflare.com)
设置步骤: Create a read-only API token for DumbMonit
In the Cloudflare dashboard, open My Profile > API Tokens > Create Token > Create Custom Token, and name it DumbMonit.
Add the read-only permissions listed below, and nothing else. The first one is required; the others switch on one part each.
Under Account Resources and Zone Resources, choose the account and the zones to monitor (All zones is fine).
Click Continue to summary > Create Token, then copy the token: it is shown once.
In DumbMonit, use this address and paste the token as API token. Leave Account ID empty unless the token covers several accounts.
api.cloudflare.com
注意. A part whose permission is missing (or that the plan does not include) is skipped and its readable metric is 0; it does not make the monitor fail. Only the zones the token can see are watched.