Automatic Detection
Learn how automatic detection of uptime monitoring works.
This feature is only available if your organization has enabled early adopter features. Early adopter features are still in-progress and may have bugs. We recognize the irony. If you’re interested in participating, enable early adopter features in organization settings.
The automatic detection of uptime alerts sets up uptime alerts for the most frequently encountered hostnames in all URLs of your error data. This helps ensure that critical hostnames are continuously monitored, enhancing the reliability and availability of your web services.
We analyze all the URLs detected in your project's captured error data to find the hostname that appears most frequently. We then create an uptime alert if it passes our uptime check criteria.
To avoid creating flaky alerts, the hostname undergoes an "onboarding period" of three days. During this period, we send HTTP requests to the hostname every hour. If the request fails at least three times, the hostname is dropped and re-evaluated after seven days.
Sentry will execute uptime checks against the hostname root path of the most frequently seen URLs. For example, if the most seen URL in your events is GET https://www.example.com/docs/introduction
the check will be GET https://www.example.com/
.
If you prefer not to use automatically detected uptime alerts, you have two options to disable them:
- Deleting Uptime Alerts: You can directly delete existing automatically detected uptime alerts from your Alerts page. Once deleted, these alerts will not be re-created automatically in the future.
- Blocking Sentry via
robots.txt
: Another method to prevent automatic detection is by updating your hostname's robots.txt file to block Sentry’s uptime monitoring bot. To do this, add the following lines to your robots.txt file:
robots.txt
User-agent: SentryUptimeBot
Disallow: *
Note: The robots.txt
file will only prevent Sentry from detecting URLs that it encounters in the future. Existing URLs that have already been detected will continue to have uptime alerts unless they are manually deleted.
At present, automatically detected uptime alerts have limited editability. You cannot update the URLs associated with these alerts. Only the alert name and owner can be modified. The ability to edit URLs and other alert settings is planned for a future release. Additionally, each organization is limited to one automatically detected hostname.
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").