Why Prometheus metrics come first when running n8n in production
A self-hosted n8n instance that runs business workflows can fail quietly. Executions pile up in a queue, a webhook slows down, or a worker stops picking up jobs, and nobody sees it until a team reports missing data. n8n can expose a Prometheus endpoint, so the first job is to enable that endpoint, scrape every process that matters (the main instance, webhook processors and workers where you run them), and alert on the first signals of trouble. Metrics come before dashboards and before deeper tracing because they answer the basic question of whether the instance is healthy right now.
Prometheus is a pull-based toolkit: it reaches out over HTTP to each target on a schedule, stores the samples in its own time series database, and lets you query them with PromQL. That model suits n8n well, since each process exposes its own endpoint and a scrape failure is itself a useful signal. It also has a limit you should plan around. The Prometheus documentation says the project values reliability over precision and is not the right choice where 100% accuracy is required, so treat its counters as operational evidence rather than a billing or audit record.
This page covers what your team needs to decide and confirm: which metric groups to switch on, how queue and worker metrics differ from main instance metrics, how to keep the /metrics path off the public internet, and which alerts to set first. Confirm the exact variable names and the metric list against the n8n version you run, because the endpoint and its flags can change between releases. Also confirm who will own the Prometheus server, its retention period and its alert routing before the first scrape goes live.
Which n8n processes expose metrics and what each one reports
The main instance is the process you start first. It serves the editor and the REST API, and in queue mode it also handles triggers and webhooks before passing executions to Redis. In a single-process deployment it runs workflows too, so its metrics endpoint is the starting point for any monitoring plan. Enable metrics with the N8N_METRICS setting on this process, then start a test instance and read what the endpoint returns before you build dashboards or alerts.
- Scope in single-process mode: The main instance covers all execution, trigger and API activity, so its output describes the whole installation.
- Scope in queue mode: It reports trigger and webhook intake and the queue hand-off, but execution work happens on workers. Confirm which queue measurements this process exposes in your version.
- Include flags: The include flags control which groups of metrics are added to the output. Confirm the flag names and what each one adds in the documentation for your release.
- Network placement: Serve the metrics endpoint on an internal interface or a restricted path so it is never reachable from the public internet.
- Naming: Series names and labels can change between releases, so record what this process returns on your version.
Before you write any alert, scrape the main instance on a test build and record the exact series names, label sets and the path they are served on.
In queue mode, workers receive executions through Redis and read and write workflow data in PostgreSQL. Their activity is execution work, so the metrics that describe runs, concurrency and job handling belong to them. Each worker is a separate process or container, which means the main instance's endpoint does not describe what the workers are doing. Treat workers as individual scrape targets, not as one service.
- Separate targets: Scrape every worker directly. A single service name that load-balances across replicas hides which worker is slow or stalled.
- Execution activity: Worker series are where run volume and concurrency are expected to appear. Confirm the names and labels for your version before you rely on them.
- Dependencies: Slow executions may come from Redis or PostgreSQL rather than from the worker itself. Monitor those services separately so the worker numbers are read in context.
- Scaling effects: Each added worker adds series. Agree the label design before you scale out, because high-cardinality labels grow the database quickly.
- Endpoint setup: Confirm whether workers listen on the same port and path as the main instance, and how your orchestrator exposes replicas to the scraper.
Check that each worker returns its own series with a distinguishing label or instance value before you build any per-worker view.
Webhook processors receive inbound HTTP calls in queue mode and hand the resulting executions to Redis. They are the process closest to the public edge, so their metrics describe request handling and intake rather than workflow logic. Because they are separate processes, each webhook processor needs its own scrape target, and their numbers should be read alongside the load balancer or reverse proxy that sends them traffic.
- Separate process: Scrape webhook processors individually and keep them apart from main and worker targets, so intake and execution problems can be told apart.
- Intake view: This is where inbound volume and response behavior are expected to appear. Confirm the exact series for your version before you base a latency alert on them.
- Exposure: Webhook processors accept traffic from outside your network, so the metrics path must not share a public route with webhook endpoints. Block it at the proxy and allow only your scraper.
- Shared listener: Confirm whether the metrics endpoint shares a listener with webhook traffic. If it does, restrict the path explicitly in your proxy configuration.
- Comparison: Compare processor-side timings with the timings your load balancer records, since the gap between them shows time spent in the network and proxy layers.
Before you open the webhook path to callers, confirm that the metrics path returns nothing when requested from outside your scrape network.
Metric names, labels and include flags can change between n8n releases. n8n uses semantic versioning and ships minor releases roughly weekly, and the release notes record changes as they land. A monitoring setup verified on one version can therefore drift after an upgrade, which is why the verification step belongs in your change process rather than in a one-time setup task.
- Record versions: Capture the running n8n version of every main, worker and webhook process in your monitoring documentation.
- Snapshot series: Save a list of series names and labels from each process type, then compare it after every upgrade.
- Manage configuration: Keep the metrics settings and include flags in the same configuration store as the rest of your environment variables, so every process starts with the same values.
- Read release notes: Review the notes for each version you adopt and check for metric renames, removed series or changed defaults.
- Pin and test: Test new versions on a non-production instance that scrapes the same way as production before you upgrade the live system.
After each upgrade, confirm that every alert still matches a series that exists in the new version.
Metrics configuration options and when each fits
This table compares the n8n metrics settings you can turn on, from the base N8N_METRICS switch to the include flags for labels and API and queue metrics. Read each row for the question it answers and the cost it adds in series count or exposed detail. Confirm exact variable names and defaults in the environment variable reference for your release before you change production settings.
| Setting | When it fits | Cardinality or privacy trade-off |
|---|---|---|
| N8N_METRICS | Any instance where Prometheus should scrape n8n at all; start here before enabling any include flag. | Exposes an endpoint that must be network-restricted; the base metrics set is the lowest-cost starting point. |
| Default metrics include flag | Baseline process and runtime health for every n8n process you scrape, including main, worker and webhook processes. | Low series count; little sensitive detail, but still reveals instance version and runtime behavior to anyone who can reach /metrics. |
| Workflow ID labels include flag | Per-workflow failure or duration panels when a small, stable set of workflows matters to operations. | Each workflow adds label values; many short-lived or user-created workflows inflate series and storage. Workflow IDs are internal identifiers, not names. |
| Node type labels include flag | Finding which node types (for example HTTP Request or a database node) drive slow or failing executions. | Bounded by the number of node types in use, so usually modest growth; still reveals which integrations your team runs. |
| Credential type labels include flag | Showing which credential types (for example OAuth or API key types) are associated with failures during rotation or outages. | Reveals which external systems you connect to; treat as sensitive if the metrics backend is shared with other teams or vendors. |
| API metrics include flag | Operating the n8n public API and watching request rates, errors and latency from callers or automation. | Adds request-level series; confirm which route labels are emitted so path parameters do not create unbounded values. |
| Queue metrics include flag | Queue mode deployments where you need queue depth, worker activity and execution pickup visibility across workers. | Series scale with the number of workers and queues; the most useful option for scaling decisions in queue mode. |
| Release-specific flags | Any flag not listed here that your release documents, such as newer metrics groups. | Unknown until checked; confirm each flag's labels and cardinality against the environment variable reference for your release. |
Setting up n8n metrics and a Prometheus scrape job
This sequence enables n8n metrics on every process that runs workflows, limits the endpoint to the Prometheus network, and confirms Prometheus scrapes each process successfully. The result is one healthy target per n8n process, with samples you can query.
Enable metrics on the main instance
The platform team sets the metrics variables, starting with N8N_METRICS, and the include flags for the metric groups they need on the main instance, then restarts n8n. Confirm the exact variable names, default port and metric names for your n8n version in the n8n documentation before copying them into your environment. Check the result from the main host with curl against the local metrics endpoint. Done means the response is plain-text metric output that includes n8n series, not an error page or an empty body.
Enable metrics on each worker and webhook processor
In queue mode, workers and webhook processors run as separate processes, so each one needs the same metrics settings applied to its own configuration, along with a port or address that does not collide with another process on the same host. Review the n8n queue mode documentation to confirm how each process type exposes its endpoint in your version. Restart each process, then run curl against each one from its own host. Done means every worker and webhook processor returns its own metric output, and you have a written list of each process with its address.
Restrict the metrics endpoint to Prometheus
The network or platform team uses host firewall rules, security groups or Kubernetes network policies to allow connections to each metrics port only from the Prometheus host or namespace. Do not expose these ports through a public reverse proxy, load balancer or ingress path, because metrics can reveal workflow names, queue state and process details. Test from a host outside the Prometheus network and expect a refused or timed-out connection. Test again from the Prometheus host and expect a successful response. Record both results in your change record.
Add scrape jobs for each n8n process
The monitoring engineer adds a scrape job to the Prometheus configuration for each process type, such as main, worker and webhook, using static targets or service discovery that matches your deployment. Give each job a clear name and label so dashboards and alerts can separate processes later. Validate the file with promtool check config before reloading. Done means the configuration validates without errors and lists every n8n process you recorded in the earlier steps.
Reload Prometheus and confirm targets are up
The monitoring engineer reloads Prometheus, then opens the Targets page in the Prometheus web interface. Each n8n target should show a state of UP, a recent last-scrape time and an empty error column. If a target shows DOWN, compare its address and port with the list from the earlier steps, then rerun curl from the Prometheus host against that address. Done means every n8n target is UP, and any failed target has a documented cause and fix.
Query samples to confirm data arrives
The monitoring engineer runs PromQL queries in the Prometheus expression browser. Start with the up metric filtered by each job, which should return 1 for every n8n target. Then query an n8n metric name confirmed in your version's documentation, and run a test workflow to check that its values change. Done means up returns 1 for every target, the n8n series return values, and the query results are saved as a baseline for the alert rules in the next section.
How main, workers, webhook processors and Prometheus connect
The diagram starts with the main instance and the webhook processors, which both place runs on the Redis queue. Workers take jobs from Redis and read and write workflow data in PostgreSQL, as the main instance does. Prometheus scrapes a metrics endpoint on each process from inside the trust boundary, then sends alerts to Alertmanager. Grafana queries Prometheus and never connects to the n8n processes. Check that only Prometheus can reach the boundary's endpoints, and that the webhook metrics endpoint is not exposed on the public listener.
Prometheus scrapes each process inside the boundary and sends alerts onward.
Queue and worker signals that reveal a stalled execution path
In queue mode, a stalled execution path rarely fails loudly. Triggers may still be accepted while work quietly piles up behind workers that no longer pick it up. The cards below group the signals that show where the path has stopped, so you can tell a backlog from a dead worker from a database problem.
Queue depth and backlog growth
In queue mode, the main instance hands executions to Redis, and workers take them from there. A queue that keeps growing while executions still start means workers are slower than incoming work, or have stopped taking jobs. Watch the trend over time rather than a single reading, and check whether the backlog drains after a burst. Confirm the exact queue metric names for your version in the n8n release notes before you build an alert on them.
Queue mode docsWorker count and availability
Workers are the components that actually run executions, so a drop in the number reporting metrics is often the first sign of trouble. Compare the number of workers you deployed with the number scraped by Prometheus, since a crashed container can leave the queue looking healthy for a while. Check that every worker runs with the same encryption key, because a mismatch shows up as credential failures rather than a clean outage.
Queue mode docsExecution outcome rates
A rising share of failed or stuck executions often appears before a queue backlog does. Track successes, errors and executions that never finish as separate series, so a workflow failing for its own reasons is not confused with a platform problem. Compare these rates against your own baseline for each workflow group, because a healthy rate for a polling job may look alarming for a webhook-driven one.
Webhook process health
Webhook processors accept incoming calls and hand them to the queue, so a failing webhook process makes the instance look down to callers even while workers are idle. Watch the request error rate and response time on the webhook endpoints separately from the main instance. Confirm in the release notes how webhook processes expose their health and metrics for your version, and whether they need their own scrape target.
Database connection pressure
Workers and the main instance read and write workflow data in PostgreSQL, so connection exhaustion can stall execution without any queue change. Watch the database connection count, query latency and error logs alongside n8n metrics. A flat queue with rising database errors points at the database path, not the workers. Ask your database team which connection and latency metrics they already collect, so you do not duplicate them.
Which alerts to set first and why each one matters
Why should I alert when an n8n metrics target goes down?
A target that stops answering is the earliest signal that a main, worker or webhook process has crashed, lost its network path or stopped serving its metrics endpoint. Prometheus records reachability for each target in the up series, so an alert on up == 0 that lasts for several scrape intervals catches the outage before users report it. Create the alert per process type so the notification names the missing role. The false-positive risk comes from restarts, deployments and scrape timeouts under load. A for clause that waits through a brief gap prevents paging on a normal rolling restart. Measure how long your own restarts take during a planned deployment, then set the wait from that baseline on your instance.
What should trigger an alert when no n8n workers are available?
Alert when the active worker count drops to zero while executions are still waiting in the queue, because that combination means work is accumulating with nobody to process it. The queue and worker metrics exposed in queue mode are the inputs, so confirm their exact names on your n8n version before writing the rule. Combining two conditions produces fewer false alarms than either alone:
- zero active workers for the chosen wait period
- queued executions above zero during the same window
A zero worker count with an empty queue is normal during quiet hours, and a busy queue with workers present may only be slow. Set the queue threshold against a baseline from your own instance. Also confirm the worker count series is scraped reliably, since a missing series can look like zero workers.
How do I tell a growing n8n backlog from a normal spike?
Alert on the trend of queue depth over a longer window, so a short burst is separated from a backlog that keeps growing. A burst from a batch import usually clears on its own, while a queue that rises across an hour means throughput has fallen behind arrivals. Use a rate or change function on the queue series with a window longer than your typical burst, and require the condition to hold for a sustained period. Measure typical burst length from your own history before choosing values. The main false-positive source is scheduled jobs that enqueue large volumes at known times, so either exclude those windows or set separate thresholds for them. A growing backlog often points to limited worker capacity or a slow downstream system, which is why it should be read alongside the worker alert.
At what failed execution share should I alert on n8n?
There is no universal share to copy. Alert when the proportion of failed executions over a window rises clearly above the level your own instance shows during normal operation. Only evaluate the ratio once there is enough volume for it to mean something, because a ratio computed over a handful of runs swings widely. Require a minimum execution count in the same window. Build the baseline from your own history, covering weekdays and known batch periods. A single broken upstream API can raise the share for a short time, so pair the rule with an error workflow that names the failing workflow, which is covered in a sibling topic. Start with a generous threshold, watch how often it fires over several weeks, and tighten it only when the alerts prove accurate and actionable.
How can I know the n8n webhook process is unreachable?
Combine a scrape alert on the webhook process with an external synthetic check that calls a public endpoint through the same proxy, load balancer and certificate path that users reach. A metrics scrape only proves the process answers Prometheus on the internal network. A broken ingress, expired certificate or DNS record can leave webhooks unreachable while every internal target reports healthy. The external probe covers that gap, but it needs its own monitoring location and an alert route that does not depend on the failing path. Expect false positives from certificate renewals, planned proxy changes and probe network issues, so require several consecutive failures before paging. Point the probe at a health path that does not start a workflow, so it does not distort your failure share. Set the failure count from a baseline of your own probe results, and confirm which health endpoints your version exposes.
Who alerts me when Prometheus or Alertmanager stops working?
A second, independent watcher must do it, because a monitoring stack cannot reliably report its own outage. Prometheus stores its data in a local time series database that is not clustered or replicated, so a crash or full disk can silence every rule at once. Set up an outside check that confirms Prometheus is answering and that alerts reach their destination, such as a heartbeat alert that fires when expected heartbeats stop arriving. Alertmanager can run as a cluster for high availability, and Prometheus should point at each Alertmanager instance as the Alertmanager documentation describes. Keep the watcher off the same host, network and chat integration as the stack it checks. Test the path by stopping a component in a non-production environment and confirming the page arrives. Set heartbeat intervals and silence windows from a baseline of how quickly your team needs to respond.
Keeping /metrics off the internet
The n8n metrics endpoint describes your workflows, queues and failure patterns, so it should be reachable only by your Prometheus servers. The cards below cover the network, proxy, label and authentication decisions that keep it that way, and the Prometheus guidance they build on.
Isolate the metrics port on the network
Serve metrics from a listener or port that only your Prometheus servers and monitoring network can reach. Do not rely on the main application port being hidden behind a firewall rule alone, because the same process serves both. In Kubernetes, a NetworkPolicy limiting ingress to the Prometheus namespace is a common way to enforce this. Confirm, for your version and deployment, which port or path the metrics are served on and whether it can be bound separately.
Prometheus security modelBlock the path at the reverse proxy
If n8n sits behind Nginx, Traefik, HAProxy or a cloud load balancer, add an explicit deny for the metrics path on every public virtual host. Proxies often forward any path that is not explicitly blocked, so a rule that only covers the web UI leaves the endpoint open. Test from outside your network after every proxy change, and include the path in your change review checklist.
Review what labels reveal
Metric labels can carry workflow names, workflow IDs or other identifiers that tell an outsider what your automations do and which systems they touch. Before you expose metrics to a wider monitoring platform, check which labels are on by default for your version and turn off the include flags you do not need. Treat label content as data classification work, not a dashboard detail.
Confirm authentication for your deployment
Do not assume the metrics endpoint has its own login. Confirm with n8n documentation or your own test whether your version supports authentication on the metrics endpoint, and whether Prometheus can present credentials when scraping. If it cannot, rely on network isolation and document that decision for your security reviewers.
Apply the Prometheus security model
The Prometheus security model assumes the server and its scrape targets run inside a trusted network and that access to its web interface and API is restricted by the operator. Prometheus has no built-in user management, so the controls around it are yours to design. Apply the same restriction to the Prometheus UI and API, and to Alertmanager, as you apply to the metrics endpoint.
Prometheus security modelVerify exposure on a schedule
Exposure changes when proxies, ingress rules or versions change. Schedule an external request to the metrics path from outside your network and alert if it returns data. Include the check in upgrade runbooks, since a new release or new ingress can change which paths are reachable.
Where Prometheus stores the data and what that means for retention
Prometheus writes scraped samples to a local time series database on the server's disk. Samples are grouped into two-hour blocks, and recent writes sit in a write-ahead log until they are compacted into blocks. The default retention is 15 days, and you can change it by time or by size using the retention flags on the Prometheus server. Retention is the first number to settle before go-live, because it decides how far back an incident review or a capacity question can look. Set it against the disk you actually provision, not the default, and confirm the flag names and behavior for your Prometheus version in the storage documentation before you write them into your deployment files.
The same local design sets the limits of the setup. The storage model is single-node and not replicated, so if the server's disk fails, the history stored on it is gone unless you have a separate copy. Treat the Prometheus host like any other single-node database: plan disk capacity with headroom for growth as more n8n instances, queue workers and series are added, watch free space and ingestion health, and include the data directory in your backup and restore routine. Prometheus is also designed to favor reliability over precision, so the data is suited to operational alerting and trend analysis rather than exact accounting.
Add remote write only when a clear requirement outlasts local retention, such as keeping metrics for longer periods for audit or capacity reviews, or sending them to a long-term store your team already runs. Remote write sends samples to an external system, which adds a second service to size, secure, upgrade and monitor, and it does not remove the need to run the local server well. Ask your team which retention window the business actually needs, who owns the remote store, and how a gap in delivery would be detected. Then confirm which remote storage systems are supported with your chosen Prometheus release before committing to one.
Limits to confirm before you rely on these metrics
Metric names, flags and support windows move between releases, and each depends on the edition you run. The four checks below cover the n8n version, the Prometheus version, your n8n plan and the Alertmanager setup, so the dashboards and alerts you build rest on facts you have confirmed for your environment.
Confirm metric names for your n8n version
Metric names, the N8N_METRICS family of flags and the include options can change between n8n releases, so do not copy a metric list from an old tutorial. Check the names against the exact version you run, using the release notes as the reference point for recent changes. The release notes list n8n 2.43, released 6 October 2026, as a recent reference. Record the version next to your dashboards so a later upgrade does not silently break a panel or alert.
Confirm Prometheus version support
Prometheus minor releases stop receiving bug fixes after about six weeks, so a server pinned to an old minor line can fall out of support without any visible failure. Decide between tracking the latest minor release or the long-term support line, then check the release cycle page for the support end date of your chosen line. Put that date on your upgrade calendar and confirm it with your own maintenance window before you rely on the server for alerting.
- Minor release cycle
- 6 weeks
Confirm your plan includes the features you need
Metrics availability depends on how you run n8n. Confirm with n8n's pricing and licensing pages whether the features your design needs, such as log streaming, multi-main high availability or Insights, are available in your edition and plan. Note that multi-main setup is limited to Enterprise self-hosted deployments. Do not assume that a feature you saw in documentation or a demo is licensed for your instance until your own license confirms it.
n8n pricingConfirm Alertmanager high availability wiring
When Alertmanager runs as a cluster, Prometheus must send alerts to every Alertmanager instance rather than to a single load balancer address. Check the alerting section of your Prometheus configuration and confirm that each Alertmanager replica is listed. Also confirm that the cluster flags are set on each replica so they find one another. A cluster that receives no alerts because of a misconfigured target is a silent failure, so test it by firing a known alert.
What teams ask before they set up n8n monitoring
What does it cost to monitor n8n with Prometheus?
Prometheus has no paid edition, so the software itself costs nothing to license. The cost comes from three places: the servers or containers that run Prometheus and Alertmanager, the disk that stores metrics, and the people who build and run the setup. Storage is usually the recurring cost that grows over time. Prometheus keeps local data for 15 days by default, and you can change retention by time or size, so the retention you choose sets the disk you need. Ask any partner for a written scope that separates one-time work (scrape configuration, dashboards, alert design) from recurring work (upgrades, alert tuning, storage growth, on-call changes).
How long does it take to get a first n8n metrics scrape working?
The first working scrape depends on a short sequence of steps: enabling metrics on the n8n process, confirming the endpoint responds, opening the network path from Prometheus, adding the scrape job, and checking that the target shows as up. Each step is small on its own, but network approvals and access to the n8n host often take longer than the configuration itself. A first scrape of a single instance is usually the quickest milestone. Queue mode, alert rules and access restrictions add more work after that. Ask for a timeline that lists each of these milestones separately, and confirm which environments are in scope.
What does n8n monitoring need from our own team?
Your team needs to supply four things. First, someone who can change n8n environment settings and restart the service in each environment, because metrics are switched on through configuration. Second, network access from the Prometheus host to every n8n process that exposes metrics. Third, a named owner for Prometheus storage, upgrades and retention. Fourth, an owner for alert routing and thresholds, because alerts must reach people who can act on them. Your security team should also review who can reach the metrics endpoint, since it can reveal workflow activity. Confirm these owners before the work starts, because unclear ownership is what usually delays alerting.
Can our own engineers set up n8n Prometheus monitoring without a partner?
Yes, if your engineers already run Prometheus and can change n8n configuration. The basic setup is a few configuration changes and a scrape job. The harder work is ongoing: choosing which metrics to collect, writing alert rules that fire on real problems, keeping the metrics endpoint private, sizing storage, and planning Prometheus upgrades. Prometheus minor releases receive bug fixes only for a limited period, and long-term support lines receive fixes for one year. The current long-term support line is 3.13, supported until July 31, 2027. If nobody on your team has time for that cycle, a partner can take on the build and hand over runbooks, or a retainer can cover upgrades and tuning.
How does n8n queue mode change the number of Prometheus targets?
In queue mode, the main instance, the worker processes and any webhook processors run as separate processes, so each one that exposes metrics becomes its own scrape target. A single-instance setup has one target, but a queue setup can have many, and the count changes as you add workers. Prometheus should label each target by role so queries can separate main, worker and webhook behavior. In Kubernetes, service discovery can add and remove workers automatically. With static configuration, someone must update the scrape list every time the worker count changes. Confirm exactly which processes expose metrics in your version by checking the n8n queue mode documentation before you write the scrape configuration.
Does n8n Enterprise add anything to Prometheus monitoring?
Prometheus itself is identical whatever n8n plan you run, because it is a separate open-source project. The n8n plan decides which n8n features you have. According to n8n's pricing page, SSO, LDAP, environments with Git and log streaming are included only in the Business and Enterprise plans, and Enterprise adds dedicated support with an SLA. Multi-main high availability is limited to Enterprise self-hosted deployments. Check the n8n pricing page and your license terms to confirm which metrics or observability features apply to your edition before you assume any difference. Any Enterprise file in the codebase also needs a valid Enterprise license.
How do we keep Prometheus alerts from flooding on-call?
Alertmanager is designed for this. It groups related alerts into one notification, inhibits lower-priority alerts when a higher-priority one is already firing, and lets you silence alerts during planned maintenance. Start with a small set of alerts that matter: a scrape target that stops responding, a failure rate that stays high for a sustained period, and a queue that keeps growing. Use the for clause in alert rules so brief spikes do not page anyone. Route by severity, so only urgent alerts wake someone up. Run a test period where alerts go to a channel rather than a pager. Alertmanager can run as a cluster, and Prometheus should point at every Alertmanager instance rather than at a load balancer. Review the Alertmanager documentation for grouping and inhibition settings.
Should the n8n metrics endpoint be reachable from the internet?
No. The metrics endpoint can reveal details about your workflow activity, queue state and infrastructure, so it should be reachable only from the Prometheus servers that scrape it. Restrict it with network rules, a private subnet, or a reverse proxy that allows only the scraper's address. Do not rely on the endpoint being obscure. Prometheus itself is designed for trusted networks, and its security model documentation explains how to think about who can query and scrape it. Test the restriction from outside your network before you call the setup complete, and include the metrics path in your security review and penetration test scope.
How DeployOpen works on this
DeployOpen plans and implements self-hosted open-source platforms inside your own infrastructure, so n8n metrics, Prometheus and the alerting around them are set up on your servers and reviewed by your own security and operations teams. The work starts with a written scope so that the metrics, endpoints and alerts agreed are the ones you receive.
How we scope
- Confirm which n8n processes run in your deployment: main, workers and webhook processors, and whether queue mode is in use.
- Agree the N8N_METRICS settings and include flags to enable, and which series your team needs to see.
- Record where Prometheus runs, how it reaches each n8n endpoint, and which Alertmanager instances receive alerts.
How we build
- Enable the metrics endpoint on each process and confirm each target responds to a scrape from Prometheus.
- Restrict access to the metrics path with network policy or a reverse proxy so it is not published to the internet.
- Write and test the first alert rules, then check that each alert fires and routes to the agreed receiver.
How we hand over
- Deliver the scrape configuration, alert rules, endpoint access rules and a list of every metric series we enabled.
- Document how to add a new worker or webhook target and how to confirm a target is healthy after a change.
- Walk your operations team through the alert runbooks, including what each alert means and who acts on it.
How we support
- Support is available as a retainer for changes to n8n versions, Prometheus upgrades and alert tuning.
- Retainers can include periodic review of scrape health, retention settings and alert noise as your execution volume changes.
- Ask any provider to confirm in writing which upgrades, retesting and response arrangements the retainer covers.

