How Hyperledger Besu monitoring with Prometheus shows a stalled permissioned network early
A consortium or enterprise team running Besu validators and RPC nodes needs to know when peers drop, blocks stop or a node falls behind, and it needs to know before a counterparty does. Besu exposes metrics for Prometheus when the node starts with --metrics-enabled, and the default endpoint listens on port 9545. Prometheus can scrape that endpoint on a schedule, or Besu can push metrics to a Prometheus push gateway if scraping is not possible from your network segment. Besu's documentation also describes a sample Grafana dashboard, which gives the team a starting view of peers, chain height and sync state. Confirm the exact metric names and the push settings against the Besu metrics documentation for the Besu release you run, because metric names and options change between releases.
Monitoring is harder than the sample dashboard suggests. The dashboard is a starting point, not a finished alerting design. Thresholds for peer count, block production and sync lag depend on your validator set size, your block time and how many nodes you expect to be offline during maintenance, so a threshold copied from another network will either page the team constantly or miss a real stall. A QBFT network can stop producing blocks when too many validators are unavailable, so the alert that matters most is usually the one that fires when block height stops advancing across the validator set, not the one that fires when a single node loses a peer. Decide these thresholds in writing with the people who run validators, and test them against a planned outage before go-live.
A permissioned network also changes who responds to an alert. Besu nodes that your organization does not operate may still appear in your peer list, and a dropped connection to a counterparty node is a conversation with that counterparty, not a restart on your side. Map every node that reports metrics to an owner, record which alerts that owner must act on and which ones only need to be shared, and agree how a counterparty is contacted when its node falls behind. Without that map, the dashboard shows the problem early and the team still cannot fix it quickly.
Scrape or push: which Prometheus collection model fits each Besu node
This table compares pull-based scraping of each Besu node's metrics endpoint with pushing metrics through a Prometheus push gateway. Read each row as a condition in your network, then check the operational cost and boundary effect that follow from it. In most permissioned deployments, the main takeaway is that scraping is the default when the monitoring host can reach every node's metrics port, and pushing is the fallback when it cannot.
| Decision factor | Scrape from each node | Push through a gateway |
|---|---|---|
| When it fits | Validators and RPC nodes are reachable from the monitoring host on the metrics port | Nodes sit behind restricted networks or run as short-lived processes that may exit before a scrape |
| Network path | Monitoring host needs an inbound route and firewall rule to each node's metrics port | Nodes need an outbound route to the push gateway only, which is easier to approve in segmented zones |
| Metrics exposure | Each node's metrics endpoint must be reachable, so restrict it to the monitoring subnet | The metrics endpoint can stay local to the node, with data leaving only through the gateway |
| Gateway to run | No gateway needed, so fewer components to patch and secure | A push gateway must be deployed, access-controlled and kept highly available with the rest of the monitoring stack |
| Stale series | Prometheus marks a target down when scrapes fail, which makes a stalled node visible in its own series | Pushed values persist on the gateway after a node stops, so alerts must check freshness rather than trust old values |
| Target discovery | Each node is added to Prometheus configuration, so inventory changes must be tracked | Nodes report under their own labels, which reduces configuration but needs consistent naming and grouping |
| Regulated boundary fit | Suits flat, well-documented zones where the monitoring host is an approved peer of every node | Suits zones that allow only outbound traffic, but the gateway becomes a sensitive system to review |
| Confirm before choosing | Confirm the metrics port and bind address in your Besu configuration and firewall policy | Confirm the gateway authentication, TLS handling and retention settings with your security team and Prometheus version |
How to enable Besu metrics and connect them to Prometheus and Grafana
This sequence turns on Besu's built-in metrics on every node, connects them to a Prometheus server through scrape targets or a push gateway, and loads a Grafana dashboard that you have checked against the live state of the network.
Choose the collection model before touching nodes
The network owner and the platform team agree whether Prometheus will scrape each node's metrics endpoint directly or receive pushed metrics through a Prometheus push gateway. Scraping is the simpler path when every node is reachable from the monitoring server. A push gateway fits cases where nodes cannot accept inbound connections from the monitoring network. Record the decision, the monitoring server's address, and which network segment each validator and RPC node sits in, because that map drives every firewall rule in later steps. Done when the team has a one-page diagram showing each node, its host, and its collection path.
Enable metrics on each Besu node
The node operator adds the --metrics-enabled option to each Besu start command or equivalent configuration, then restarts the node in a controlled order that protects the validator set. The default metrics endpoint port is 9545, but confirm the port in your own configuration and record any change so Prometheus targets match it. Confirm the exact option names and flags for your Besu version in the metrics documentation before rolling the change out, since flags change across the monthly releases. Done when each node starts cleanly and its log shows the metrics service listening on the expected interface and port.
Confirm each metrics endpoint from the monitoring host
From the monitoring server, the platform engineer requests the metrics endpoint on every node using a simple HTTP request and checks that the response contains Prometheus-format metric lines. This step catches the most common failures: a bind address set to localhost, a firewall rule that blocks the port, or a host reachable only from another subnet. Test from the same network segment that Prometheus will use, not from an administrator's workstation. Done when every node returns metrics to the monitoring host, and the team has recorded a failing node's cause if any node did not respond on the first attempt.
Define Prometheus scrape targets or push gateway path
The monitoring engineer adds one scrape job or push configuration per node group, with a label that identifies each node's role, such as validator, RPC or bootnode, and its environment. Use clear, stable labels so that alerts and dashboards can filter by role without hard-coded host names. If the push gateway path was chosen, configure the nodes to push to the gateway and confirm the gateway accepts the job name and labels. Keep the Prometheus configuration in version control with the rest of the network's infrastructure code. Done when the Prometheus configuration validates and reloads without errors.
Verify every node shows as up in Prometheus
The monitoring engineer opens the Prometheus targets view and confirms that each node appears with a status of up and a recent last-scrape time. A node that is listed but shows down usually points to the endpoint checks from the previous step, so re-run them before changing Prometheus settings. Query a basic Besu metric for each node to confirm the labels are attached as intended. Done when every expected node reports up, no unexpected targets appear, and the labels match the map from the first step.
Import and adapt the sample Grafana dashboard
The monitoring engineer imports the sample Besu dashboard from the Besu documentation into Grafana, points its data source at the Prometheus server, and adapts variables to match the labels chosen earlier. Panels that reference metric names the installed version does not expose will show no data, so compare each panel's query with the metric names listed in the documentation for your Besu version. Remove panels that do not apply and add panels for any operational signals your team needs. Done when the dashboard loads without query errors against the live Prometheus data source.
Check dashboard panels against known node state
The network operator compares what the dashboard shows with what the team already knows about the network: how many validators should be connected, which node produced the most recent block, and whether any node is syncing. Pick a known condition, such as a node that was restarted during the metrics rollout, and confirm the panels reflect it. Any panel that disagrees with a known state should be traced to its query, label filter, or time range before the dashboard is trusted. Done when the team signs off in writing that each core panel matches the observed network state.
Record the setup and the version it applies to
The platform team writes a short runbook covering the metrics flags, the endpoint port, the Prometheus configuration location, the dashboard version, and the Besu version tested. Because Besu ships new releases regularly, the runbook should state that metric names and dashboard panels must be rechecked after every upgrade before the upgrade is considered complete. Store the runbook alongside the upgrade plan so that the person who performs the next upgrade sees the monitoring checks in the same place. Done when the runbook is reviewed by a second engineer and linked from the network's operations documentation.
How metrics move from Besu nodes to dashboards and alerts
Metrics start on each validator and RPC node, where Besu exposes a Prometheus endpoint when metrics are enabled. Prometheus scrapes that endpoint across the boundary between the consortium network and the monitoring network, or a push gateway receives pushed metrics where scraping is not possible. Prometheus evaluates alert rules and forwards firing alerts to an alert router, while Grafana reads from Prometheus to draw the sample dashboards. Check that only the monitoring network can reach the metrics port, and confirm the scrape path with your own environment.
Besu nodes expose metrics that Prometheus scrapes or receives through a push gateway.
Which Hyperledger Besu monitoring alerts matter for peer count, block production and sync
Three alert families matter most on a permissioned Besu network: peer count, block production and sync status. Peer count alerts tell you when a node has fewer connected peers than it should. On a permissioned network, the node permissions file limits which enodes may connect, so a validator with a shrinking peer set may be partitioned from the rest of the validator set or may have a wrong entry in its permissions configuration. The on-call engineer should first confirm which peers the node lists as connected, then compare them against the node permissions file and the enode list the consortium agreed on. Route this alert to the platform team that owns node configuration, because the fix is often a permissions or bootnode change rather than a restart.
Block production alerts matter more on QBFT networks than on public chains, because your team controls the validator set and a stalled chain has a short list of possible causes. Alert on the chain head failing to advance within an interval you derive from your own block time, and separately on any validator that stops proposing or signing blocks. Send chain-level stalls to the validator operations on-call rotation and to the consortium contacts who can vote on validator changes. When the alert fires, check whether a majority of validators is still online and reachable, and whether a recent upgrade or key change touched the affected nodes. Confirm with your validator operators how many validators can fail before finality stops.
Sync status alerts cover RPC nodes and validators that fall behind the head of the chain. A node that lags may still answer requests, which makes it easy to miss until applications report stale balances or failed transactions. Compare each node's reported block height with the highest height among the validators, and alert when the gap persists. The first checks are the node's logs for peer or storage errors, its disk space and I/O, and whether it recently restarted or upgraded, since a Bonsai database upgrade on first start can take time. Route RPC sync alerts to the application or integration team that depends on the node, and validator sync alerts to the platform team. Set all thresholds from your own block time, validator count and observed baseline, and record them in the runbook.
How monitoring differs for validators, RPC nodes and bootnodes
Validators are the nodes that take part in QBFT consensus and propose or sign blocks. For these nodes, the question is whether the validator is participating in consensus and whether the chain is still producing blocks. A validator can be running, reachable and fully synced and still be a poor signal if it has stopped signing, so monitoring should focus on consensus participation rather than process uptime alone.
- Block production: Alert when the chain head stops advancing for longer than your expected block interval, and confirm the threshold against your configured block time.
- Consensus participation: Track whether each validator is still in the validator set and is signing or proposing blocks as expected.
- Peer count: Alert when a validator loses connections to other validators, since a partitioned validator can stall the network.
- Restart and version drift: Alert on unexpected restarts and on validators running different Besu versions, especially around upgrades.
Confirm the exact metric names and their meaning for your Besu version in the metrics documentation before you write alert rules.
RPC nodes do not vote in consensus. They serve transactions and reads to wallets, back-end services and integrations, so their health is judged by whether applications see current data and get responses in reasonable time. A validator can be healthy while an RPC node falls behind, which is why RPC nodes need sync and request-level signals of their own.
- Sync status: Alert when the node's head falls behind the chain head by more than an agreed number of blocks, and set that number with the application owners.
- Request load: Watch request rates and latency on the JSON-RPC interface to spot saturation before callers time out.
- Peer count: Alert when the node loses enough peers to receive new blocks reliably.
- Data freshness checks: Run a synthetic read from a known contract or account and compare the result with a validator, so you catch stale data that a process check would miss.
Ask application owners which lag and latency levels break their workflows, and record those values as the alert thresholds.
Bootnodes and relay nodes help other nodes find peers and pass connections along. They rarely hold the business logic of the network, but if they are unreachable, new nodes may fail to join and existing nodes may lose their routes to the rest of the network. Monitoring here is mostly about connectivity, so the signals are peer count and reachability from outside the node's own network segment.
- Peer count: Alert on sustained drops in the number of connected peers, and compare against the expected size of the network.
- Reachability: Test the node's peering port from the networks where other participants run, not only from inside the hosting environment.
- Connection churn: Watch for repeated disconnects, which can point to firewall, DNS or certificate changes on either side.
- Process and host health: Track CPU, memory, disk and restarts on the host, since a bootnode that restarts often loses its place in the peer graph.
Confirm with each participant which addresses and ports they use to reach your bootnodes, because a monitoring check that uses the wrong path will show a false healthy state.
What drives Besu monitoring effort and cost
This table lists the factors that change how much work and spend a Besu monitoring setup creates, and how to keep each one under control. Read it as a checklist before scoping: the sample dashboard and metrics are free under Apache 2.0, so most of the cost sits in engineering time, hosting and the alerting path.
| Driver | Why it changes effort or cost | How to keep it down |
|---|---|---|
| Number of nodes | Each validator, RPC and boot node exposes its own metrics endpoint, so scrape targets, labels and dashboards grow with node count. | Use a standard scrape template per node role and generate targets from one inventory file. |
| Environments (dev, test, production) | Every environment needs its own Prometheus, dashboards and alert thresholds, and non-production alerts can create noise. | Keep one codebase of rules and parameterize thresholds per environment; route non-production alerts to a lower-priority channel. |
| Metrics crossing network boundaries | Scraping across data centers, clouds or consortium member networks needs firewall rules, TLS or private links and extra approvals. | Agree the scrape path and metric exposure with each member early; confirm the network controls your security team requires before building. |
| Push or pull collection | Pull via Prometheus scraping is the usual model, while Besu can also push to a Prometheus push gateway, which adds a component to run and secure. | Default to pull where the network allows it and use push only for nodes Prometheus cannot reach, with the gateway covered by your backup and access controls. |
| Alert routes and on-call rotations | Each severity level, team and escalation path adds routing config, testing and staff who must respond at night. | Limit alerts to a few that need action, such as peer count, block production and sync status, and document one owner per alert. |
| Consortium members whose nodes must be visible | Each member you monitor on behalf of, or with, adds agreements about who sees what data and who responds to incidents. | Agree a shared minimum metric set and a common dashboard view in writing before onboarding a member. |
| Retention and storage in Prometheus | Longer retention and higher series counts increase disk, memory and query load, and the cost recurs for as long as data is kept. | Set retention to match your investigation and audit needs, and drop high-cardinality labels you do not query. |
| Dashboard customization | Custom panels for each role need design, review and upkeep every time Besu changes metric names across its monthly releases. | Start from the sample Grafana dashboard, build one dashboard per role, and keep panels and alert rules in version control. |
Protecting metrics endpoints, dashboards and alert credentials
Monitoring adds its own attack surface to a Besu network: metrics endpoints, dashboards, alert receivers and any push gateway. Each needs its own access controls, separate from the JSON-RPC surface, which must be reviewed on its own terms.
Restrict hosts that reach metrics
Besu serves metrics on its own endpoint, enabled with --metrics-enabled on the default port 9545. Treat this endpoint as separate from JSON-RPC, because it has its own bind address and exposure. Confirm the metrics interface is bound to the monitoring network only, and that firewall rules on each validator and RPC node allow scraping from the Prometheus servers and nothing else.
Authenticate Grafana and Prometheus access
Prometheus itself has no user accounts by default, so anyone who reaches its web interface can query every node's data. Put Grafana and the Prometheus UI behind your identity provider or an authenticating reverse proxy, and limit administrative actions to a small group. Confirm which accounts can edit data sources, export dashboards and view raw query results.
Keep alert receiver secrets out of config
Alert receivers such as email, chat or paging services need credentials. Do not place these in plain text in Alertmanager or Grafana configuration files committed to source control. Load them from your secrets manager or environment at runtime, rotate them on a schedule, and confirm that old tokens are revoked when staff leave the consortium's operations team.
Protect the push gateway if used
Besu can push metrics to a Prometheus push gateway instead of being scraped. A push gateway accepts writes from any client that can reach it, so an open gateway lets an attacker inject false metrics that could hide a stalled validator. Restrict it to known node addresses, require authentication, and alert on unexpected job or instance names.
Treat labels and logs as sensitive
Metric labels, dashboard annotations and logs can reveal node addresses, validator identities, peer topology and transaction volumes that a consortium may not want shared with every member. Review which labels are exported, who receives the dashboards, and whether logs are forwarded to third-party services. Agree the data sharing rules in the governance documents before go-live.
Record who changes alert rules
Alert rules decide which failures reach an operator, so a silent change can hide a halted block producer. Keep alert and dashboard definitions in version control with reviewed changes, and confirm that Grafana or Prometheus audit logs record edits and who made them. Check this periodically against the access list for the monitoring stack.
How to test that Besu alerts fire and fail safely before go-live
Before go-live, prove that every alert fires on a real fault, not just that the rules load. Start by confirming that each Besu node appears as a target in Prometheus and reports values for the metrics the rules depend on. A target that shows as down or returns no series will silently disable any alert written against it, so this check comes first. Record the scrape status and a sample query result for each node, and check that the node labels match the names your on-call team uses.
Next, run controlled faults in a test network that mirrors the production topology. Stop one validator and confirm that the peer count and up alerts fire within the window you configured. Stop block production by halting enough QBFT validators to break consensus, then confirm the block production alert fires and that the network's finality stays intact, since a stalled network is a case to protect rather than a case to reproduce carelessly. Lag an RPC node by blocking its sync or delaying its peer, then confirm the sync alert fires. For each test, record the injected fault, the time it started, the time the alert fired, and the time it cleared.
Then test the monitoring stack itself. Restart Prometheus and confirm that the team receives an alert that monitoring is blind, not silence. If you push metrics through a Prometheus push gateway, make it unreachable and confirm the same outcome. Confirm alert routing end to end, including the escalation path and the out-of-hours contacts, by asking the named responders to acknowledge a test page. Keep the results, the rule file version and the Besu version tested with the change record so auditors and operators can trace what was proven and when. Confirm the exact alert expression behavior with your Prometheus version against the Besu metrics documentation.
Questions teams ask before building Besu monitoring
Are Besu metrics enough to serve as compliance evidence?
No. Besu metrics support day-to-day operations, such as spotting a node that has fallen behind or a validator that has stopped producing blocks, but they do not make a control compliant on their own. Compliance assessors look for documented alert rules, defined owners, retention of alert history and evidence that someone responded. DeployOpen prepares monitoring systems, controls and evidence for compliance assessments, but it does not issue audit reports or attestations. Independent auditors and certification bodies make those determinations, so confirm with your assessor which records they will request before you design retention.
How long does a monitoring build take for a small Besu network?
The duration depends on the number of nodes, how alerts are routed, and whether you already run Prometheus and Grafana. A team with an existing Prometheus stack and a short list of validators and RPC nodes needs far less time than one building scraping, dashboards, alert routing and on-call handoffs from nothing. No fixed timeline applies across networks, so ask for a duration that follows from the written scope, and confirm which of those inputs are already in place in your environment.
Can our team set up Besu monitoring without outside help?
Yes, if your team already operates Prometheus and can open the network paths it needs. The main work is enabling metrics on each node with the --metrics-enabled option, confirming the metrics endpoint is reachable from your monitoring host, writing alert rules for peer count, block production and sync status, and routing those alerts to people who will act on them. Teams without Prometheus experience, or without a clear on-call owner, usually find the alert design and the runbooks take longer than the setup itself.
What does the work need from our side?
Plan to provide access and decisions in four areas:
- Access to the Besu nodes and the hosts where Prometheus and Grafana run, within your change process
- Network paths from the monitoring host to each node's metrics port, and any firewall rules approved by your security team
- Alert channels, such as chat, paging or ticketing, with credentials or webhook configuration owned by your team
- Named on-call owners who accept alerts for validators, RPC nodes and the network as a whole
Should Prometheus pull Besu metrics or should Besu push them?
For most permissioned networks, pull is the better default because Prometheus scrapes each node's metrics endpoint on a schedule, and a node that stops responding shows up as a failed scrape, which is itself a useful alert. Besu also supports pushing metrics to a Prometheus push gateway. Push can suit nodes behind networks that do not allow inbound scrapes, but a push gateway adds a component to run, secure and monitor, and it can mask a dead node if stale values stay visible. Decide based on your network segmentation and confirm the approach against the Besu metrics documentation.
What should a monitoring quote include?
A useful quote lists the scope by component: the nodes covered, the metrics endpoint configuration, the Prometheus scrape or push design, the Grafana dashboard work, the alert rules and their routing, and the handover to your operators. It should separate one-time work from recurring work, such as dashboard updates after Besu upgrades, and state which items depend on your existing tooling. Ask what is excluded, who maintains alert thresholds after go-live, and which deliverables you receive in writing. Fixed-scope engagements are agreed in writing before work starts, so the quote should match that document.
Which alerts matter most for a permissioned Besu network?
Start with the alerts that signal a network can no longer produce or finalize blocks. These typically include a drop in peer count below what your validator set needs, a stalled block height, a node reporting that it is syncing when it should be at the chain head, and a validator that stops participating. Add alerts for process restarts and for upgrades that change the database, because a Besu database upgrade on first start cannot be reversed without a prior backup. Set thresholds with your network team, since the right values depend on your validator count and block time.
Does monitoring Besu nodes expose them to new risk?
It can, if the metrics endpoint is reachable beyond the monitoring host. Besu's metrics endpoint should be restricted by network controls so that only your Prometheus servers can reach it, and dashboards and alert channels should not reveal secrets or sensitive account data. Besu does not terminate HTTPS natively, so any protection for transport must come from the layer you place in front of it. Review these settings with your security team before enabling metrics on production validators, and test the restricted paths before go-live.
What to monitor, back up, upgrade and document after go-live
The work after go-live is what keeps a Prometheus and Grafana setup useful for a permissioned Besu network. Treat the alert rules, dashboard JSON and scrape configuration as code kept in version control, with changes reviewed the same way as node configuration. Each month, review which alerts fired, which were acknowledged without action, and which never fired at all. Noisy alerts get tuned or removed, and genuinely silent failure modes such as a stalled block height get a rehearsed test. Confirm Prometheus retention and disk capacity against the number of series your nodes expose, because storage growth is easy to miss until a volume fills.
Besu ships on a monthly calendar cadence, so check metric names and dashboard panels after each release before assuming they still work. A renamed metric can leave an alert permanently green. Pair that check with the Bonsai database note in the Besu 26.10.0 release notes: the database upgrades automatically on first start, and older Besu versions cannot open it afterward. Have monitoring record the Besu version reported by every node, so you hold upgrade evidence and know exactly which build a rollback would need to return to, alongside a backup taken before the upgrade. Confirm with your own team which version field your dashboards already expose.
Rehearse alert routing whenever on-call staff, validator operators or escalation contacts change, and send a test notification through the actual receiver rather than assuming the route still works. Finally, maintain an endpoint inventory listing each node, its role, its metrics port (default 9545 unless changed), its owner and the runbook for each alert. A runbook should say who acts, what to check first and when to escalate to the consortium. Without these records, a monitoring setup that works on day one becomes a set of alerts nobody owns within a year.
How DeployOpen scopes, builds and hands over Besu monitoring
DeployOpen plans and implements Besu monitoring inside your own infrastructure, starting from a written scope that names the nodes, metrics, dashboards and alerts involved. The work is documented and handed to your operators so your team can review and run the monitoring stack after go-live.
How we scope
- Engagements are fixed-scope, with the nodes, metrics endpoints and alert set agreed in writing before work starts.
- We inventory which validators, RPC nodes and bootnodes need metrics enabled, and where Prometheus will run.
- The written scope states whether Grafana dashboards, alert routing and push gateway use are included or excluded.
How we build
- We enable the Besu metrics endpoint on each node and confirm the port exposure matches your network controls.
- Scrape or push configuration is set up for Prometheus and tested against each node's peer count and block height.
- Alert rules for peer count, block production and sync status are written and checked against a deliberately stalled test node.
How we hand over
- You receive the configuration files, scrape targets, alert rules and dashboard definitions, with a record of each change.
- We document how to read the sample Grafana dashboard and which signals indicate validator or sync trouble.
- Your operators walk through a runbook covering alert response, Besu version changes and metric endpoint updates.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- A retainer can cover updating alert rules when Besu releases change metric names or default behavior.
- Ask any partner to confirm how monitoring changes are tracked alongside your Besu upgrade calendar.

