API monitoring: check the response, not just the status
Faucon calls your endpoints with GET, HEAD or POST, accepts the statuses you choose and looks in the response for the text that proves the service works.
Monitor my API- request
- GET https://api.lumen.fr/api/health/ready
- accepted
- 200-299
- must contain
- "status":"ok"
- slow above
- 1,000 ms
- timeout
- 10 s
503 Service Unavailable · incident opened at 10:42
Which endpoints should I monitor?
The health check first, if there is one: it tells whether the app and its database answer. Then the routes your pages depend on. When you add an address, Faucon tries /api/health/ready, /api/health/live, /health, /healthz on the site’s hosts and lists the APIs its scripts call. You choose what to keep.
What you set for each endpoint
- Method
- GET, HEAD or POST
- Accepted statuses
- 200-399 by default, or a list such as 200,204,301-302
- Expected text
- Present in the response, or the monitor is down
- Slow threshold
- From 100 ms to 30 s
- Timeout
- From 1 to 30 s, 10 s by default
API monitoring FAQ
Which HTTP methods can Faucon use?
GET, HEAD and POST. HEAD is enough to know an address answers; GET and POST let you check the response’s content.
How do I check an API really works, not just answers 200?
Give a text the response must contain, such as "status":"ok". If it is missing, the monitor is down even with a good status.
Does Faucon find health checks on its own?
Yes, when you add an address: it tries /api/health/ready, /api/health/live, /health, /healthz and lists the APIs the site’s scripts call. Nothing is added without your consent.