Cloudflare Traffic Anomaly Monitoring is a feature that allows you to track sudden changes in your website’s traffic patterns. It analyzes the number of requests to your Cloudflare-protected website and alerts you when there are significant increases or decreases in traffic volume.
How do I set up Cloudflare Traffic Anomaly Monitoring?
Add the Cloudflare resource to your Alerty inventory, and Alerty will begin monitoring it automatically! When Alerty detects a significant change in your traffic patterns, it will send you an alert.
While we recommend using the “Read all resources” template for most users, Cloudflare does offer options for more granular control over API permissions. This is useful for users who need to restrict access to specific zones or resources.To create a fine-grained access token:
Instead of selecting the “Read all resources” template, choose “Create custom token”.
Under “Permissions”, add the following:
Zone - Analytics: Read
Zone - Traffic: Read
Under “Zone Resources”, you can choose to apply the token to:
All zones
Specific zones (you’ll need to enter the Zone IDs)
This approach allows you to create a token with the minimum necessary permissions, enhancing security by limiting the scope of what the token can access. However, it requires more setup and you’ll need to ensure you’ve included all the zones you want to monitor.Remember, if you use a fine-grained access token, you’ll need to make sure it has access to all the zones you want to monitor in Alerty. If you add new zones later, you may need to update your API token permissions.For most users, the “Read all resources” template will be simpler to set up and maintain, especially if you’re monitoring multiple zones or frequently add new ones.