Have a n8n split out into the three processes for the web, worker, and webhook. Collecting metrics from the web instance works however the webhook and worker doesn’t. Does n8n support collecting metrics from all three?
You’re quite right, the /metrics endpoint is not available on the workers or webhook processors (this also goes for more recent n8n versions than your current version 0.233.0). I believe this is intentional, but perhaps @krynble can confirm this with certainty?
For a simple health check you could consider using the /healthzendpoint instead which is available on workers and webhook processors as well. It would, however, not provide full metrics.
Thanks @MutedJam, @krima can you confirm and if so, is there a reason? If not, is there a plan to implement it on all n8n containers running as a webhook or worker service?
Indeed workers and webhook processes don’t support the /metrics endpoint - the metrics it exposes and collect makes sense when running in non-queue mode.
We have plans to improve observability and monitoring of queue mode but it requires collecting and aggregating metrics from multiple services, which require careful planning.
We have plans to make improvements to reliability and scalability of n8n and i’ll be adding this topic to our list of items to prioritize.