Uptime Alert Configuration
Learn more about the options for configuring an uptime alert.
Configure your uptime alerts with the following options.
First, specify which environment this alert rule belongs to. Any uptime issues that will be created from this alert rule will then be set to your specified environment.
The “Environment” dropdown lists the same environments available in your project, excluding hidden ones.
Specify the project associated with your alert rule. Any uptime issues created will appear under this project.
Configure how Sentry performs HTTP uptime checks by setting the following options:
- Interval: The time between each uptime check. Options:
1 minute,5 minutes,10 minutes,20 minutes,30 minutes, and1 hour. - Timeout: The maximum time Sentry waits for a response before considering the request a failure (up to 30 seconds).
- URL: The target URL for the uptime check.
- Method: The HTTP method used (
GET,POST,HEAD,PUT,DELETE,PATCH, orOPTIONS). - Headers: Custom headers included in the request.
- Body: The request payload, available for
POST,PUT, andPATCHmethods. - Allow Sampling: Enables span sampling for requests via the Sentry SDK. See distributed tracing with uptime for details.
When adding HTTP headers, be cautious of including sensitive data, such as API tokens or personal information, to prevent unintended exposure or storage.
Below the request configuration, you'll find an example of the expected request that Sentry will send to the specified URL, including the method, headers, and body. Sentry automatically adds User-Agent and Sentry-Trace headers.
Additional notes:
- Include a
Content-Typeheader if required by the target URL. For example, a JSON payload should haveContent-Type: application/json. - The selected interval affects downtime detection speed. By default, Sentry triggers an uptime issue after three consecutive failures (configurable in Thresholds). For example, a 5-minute interval with the default failure tolerance means downtime is detected after at least 15 minutes. Learn more about the uptime check criteria.
- In case the specified URL is behind a firewall, make sure Sentry's Uptime Bot can execute requests to it. Learn more about firewall configuration with uptime monitoring.
- Sentry Uptime Tracing automatically appends a sentry-trace header to outgoing requests for distributed tracing. Learn more.
Set when issues are created and resolved based on consecutive check results.
Set how many consecutive failures trigger an issue. Defaults to 3 consecutive failures.
For example, with a 5-minute interval and a failure tolerance of 3, an issue will be created after 15 minutes of consecutive downtime (3 failed checks × 5 minutes).
Set how many consecutive successes resolve an issue. Defaults to 1 consecutive success.
With a recovery tolerance of 1, the issue will be resolved as soon as the first successful check occurs after the downtime period.
These thresholds help reduce noise from transient failures while ensuring you're notified of sustained downtime.
This feature is available only if you're in the Early Adopter program. Features available to Early Adopters are still in-progress and may have bugs. We recognize the irony.
Add custom verification to your uptime check to validate various parts of the HTTP response from your service. With custom verification, you can check HTTP status codes, header keys and values, and the response body to ensure they conform to your expected values.
If no verification is configured, uptime checks will use the default criteria, which requires a 2xx status code for the check to be considered successful.
A verification consists of multiple assertions. Each assertion evaluates to true or false. The verification passes only if all assertions evaluate to true.
Assertions can be combined into "any" and "all" groupings, requiring any or all of the assertions in that group to pass for the whole group to pass. This allows you to create complex verification logic.
Redirects: If your URL returns a redirect (3xx status code), Sentry will automatically follow the redirect chain. Verification is only applied to the final response after all redirects have been processed.
At any time, you can test your uptime monitor by clicking the "Test Monitor" button at the bottom of the configuration screen. This performs a complete uptime check at the specified endpoint, allowing you to quickly iterate on complex verifications until they work as expected.
For practical reasons, Sentry constrains verification complexity:
- Glob complexity: Limited to prevent performance issues
- JSONPath execution time: Constrained to ensure timely checks
- Number of assertions: Limited per verification
- Response body size: Maximum size limit for downloaded responses
If you encounter errors, you may need to reduce the complexity of your assertions or limit the size of the response body.
Give your alert a descriptive name, for example, "Landing Page" or "Contact Page".
Assign a team or team member to manage the alert. If no team is assigned, any user can modify the alert. Uptime issues created from this alert rule will be set to the specified team or team member.
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").