Uptime monitoring

We self-host and want to make sure n8n is fully up and running 24*7 (by monitoring using the tool “uptime robot”)

How are people doing this atm and what is “best practice”, the only external integration we are using “across the board” is SSO login using MS365 cloud SAML (Entra).

Other products we use ship with things like a JSON page called “heathcheck” that uptimerobot can retrieve show everything is up and working.

background: The only thing that it “unusual” about us is we are hosting on Windows (on an Amazon VM) and the postgres RDS is hosted Amazons’ “RDS” service.

(Our long-term plan is to go to a container on ECS instead)

hello @Neil_Carmichael

Basically, you will need 3 things to check:

  • The status code for https://your_n8n_instance_name/
  • The database availability via it’s port
  • Set an error workflow for any workflow you have (or for any important one).

Okay, so if the db or sso connection is down, will the landing page for n8n not give a 200? It’s just I have had products before where they’ll give a 200, but the page its serviing is giving bad news!

Certainly I need to find a standard way for people to add monitoring to their workflows or perhaps scan for “problematic” words in log files.

Can’t say about SSO. But usually if SSO is not working, there should be a local auth used.

If the DB will fail, then n8n will also fail, but I don’t know how quickly it will know about the DB failure

Thanks, is there a way to a make a suggestion that they add a standard “health” page? It seems other products using node.js have done it, for example How to implement a health check in Node.js - LogRocket Blog

We checks if the main page is loading fine and didn’t have any issues for the last 3 years :thinking:

I found that there is a healthcheck page, its optional so you need to turn in on with enviroment variables but then after than you just have to to do a http get of the page /healthz/readiness and if all is well it will return the JSON {"status":"ok"}

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.