Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

n8n Webhook Executions Dashboard

Grafana dashboard for monitoring webhook execution activity in n8n — tracking execution counts, success/failure rates, and latency across all webhook workflows.

Screenshots

n8n Webhook Executions

Prerequisites

Enable metrics in n8n by setting the following environment variables before starting n8n:

N8N_METRICS=true
N8N_METRICS_INCLUDE_WEBHOOK_METRICS=true
N8N_METRICS_INCLUDE_WORKFLOW_INFO=true

See the n8n Prometheus docs for more information.

Verify metrics are exposed by visiting http://your-n8n-host.com/metrics — you should see Prometheus-formatted output including n8n_webhook_request_duration_seconds metrics.

Import into Grafana

  1. Open Grafana and go to Dashboards → Import
  2. Click Upload dashboard JSON file
  3. Select n8n-webhook-executions.json
  4. Select your Prometheus datasource when prompted
  5. Click Import

Configuration

Environment picker

The dashboard has an Environment picker at the top that controls where workflow-name links open (e.g. clicking a workflow name opens <base-url>/workflow/<id> in n8n).

To add your own environments, edit the n8n_base_url variable in n8n-webhook-executions.json:

{
  "name": "n8n_base_url",
  "label": "Environment",
  "type": "custom",
  "query": "Local : http://localhost:5678, Staging : https://n8n.staging.example.com, Production : https://n8n.example.com",
  "options": [
    { "text": "Local",      "value": "http://localhost:5678",           "selected": true  },
    { "text": "Staging",    "value": "https://n8n.staging.example.com", "selected": false },
    { "text": "Production", "value": "https://n8n.example.com",         "selected": false }
  ]
}

The query field uses Grafana's Label : value, Label : value syntax; keep the options array in sync.

Local development

Mock traffic (for testing)

The mocks/n8n-webhook-executions/ directory contains scripts to generate realistic webhook traffic against your local n8n instance, useful for testing the dashboard and triggering Slack alerts.

# One-off batch (e.g. to trigger a Slack alert)
./mocks/n8n-webhook-executions/generate-webhook-traffic.sh --requests 20 --delay 0 --fail-rate 1.0

# Continuous background traffic
./mocks/n8n-webhook-executions/generate-historic-webhook-traffic.sh