From c7532481f5e644a67218941af9652b81c5a3c448 Mon Sep 17 00:00:00 2001 From: bacarini Date: Wed, 10 Mar 2021 23:19:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Add=20documentation=20for=20metr?= =?UTF-8?q?ics=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/configuration.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index c58d741b3..0f6880b44 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -252,6 +252,26 @@ webhook URLs get registred with the external services. export WEBHOOK_TUNNEL_URL=https://n8n.example.com/ ``` +## Prometheus + +In order to collection and expose metrics n8n uses the library +[prom-client](https://www.npmjs.com/package/prom-client). + +The `/metrics` endpoint is disabled by default but it is possible to enable it +via the environment variable `N8N_METRICS`. + +```bash +export N8N_METRICS=true +``` + +It is also possible to overwrite the prefix metric names by providing the +environment variable `N8N_METRICS_PREFIX`. + +```bash +export N8N_METRICS_PREFIX=n8n_ +``` + +**Note:** At the moment n8n does not support metrics for webhooks. ## Overwrites for credentials