Your applications and services depend on Auth0. Monitoring Auth0’s health lets you report specific errors to customers or reduce user impact in case there’s an issue with Auth0.There’s many ways to monitor Auth0 and each approach complements the others. You should pick based on your needs and investment possibilities.
Set up a periodic request to perform an authentication transaction.
If the request succeeds, Auth0 is working fine.
If the request fails, this may indicate:
an issue with Auth0
an issue specific to the tenant used for the synthetic transaction
or just a single failed request.
For synthetic transactions, use an environment as close to your production tenant configuration as possible. You may potentially even use the same production tenant. Since setting up synthetic transactions with redirect flows and third party providers can be tricky, using the Resource Owner Password Grant is recommended. This flow doesn’t involve browser redirects or require a UI.If you are using rules or custom database connection(s) or other extensibility points, the synthetic transaction(s) should be configured to utilize the rules and/or custom DB scripts to ensure that aspect of the system is working.Tools like Pingdom make setting up synthetic transactions a simple thing.
We recommend running synthetic transactions on one minute intervals. With this simple approach, that frequency won’t consume a lot of your Auth0 rate limit quota, while also providing timely responses.
This approach is useful to track errors in existing calls to Auth0. It involves reporting errors whenever a call to Auth0 fails. Sentry is a tool commonly used for these cases, which works both on frontend and backend scenarios.This approach is useful because it allows you to know about real errors that your end users are experiencing. However, because you are only tracking errors (and not all requests) it is not possible to get an accurate perception of “how many” end users are affected: is it 1% or 5%? It also doesn’t require you to set up a separate “synthetic call”, which might consume part of your rate limit quota, especially if misconfigured.
Some observability products also allow you to report metrics/logs from frontend and mobile applications.
The approach consists of using metrics and/or logs to track error rates on calls to Auth0. Metrics/logs report error rates that accurately describe what end users are experiencing, without requiring you to set up a separate “synthetic call”, which might consume part of your rate limit quota, especially if misconfigured.
Regardless of the monitoring approaches you use, it’s common to get an alert or page when errors happen at a particular rate. That rate depends on your application.When your team gets an alert from Auth0, we recommend adding a link to Check Auth0 Status to the alert payload/playbook. This will allow them to quickly check Auth0’s official status reporting channel to see if the issue is coming from Auth0 or your application/service.