Synthetic transactions
The simplest approach to monitor Auth0:- 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.
Check period
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.Limitations of synthetic transactions
Synthetic transactions are a simple and inexpensive way monitoring an Auth0 tenant’s health. However, they do have some limitations:- Synthetic transactions do not represent your end user’s experience. Instead they give you a proxy metric for them.
- Synthetic transactions might not use the same flows as your users.
- They lack atomicity (typically run once a minute) and do not report on errors your end users might have seen.
Error tracking
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.Metrics and logs
This approach is useful if calls to Auth0 are performed from a backend you control. This is the case for:- Most calls to Auth0’s Management API
- Calls to the Authentication API from Regular Web Applications and Machine-to-machine applications (learn more about client types).
Some observability products also allow you to report metrics/logs from frontend and mobile applications.