> For the complete documentation index, see [llms.txt](https://docs.zetrix.com/zetrix-l2-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zetrix.com/zetrix-l2-documentation/reliability-and-security/monitoring.md). Agents can also search and read this documentation through its [MCP server](https://docs.zetrix.com/zetrix-l2-documentation/~gitbook/mcp).

# Monitoring

## Architecture

```mermaid
flowchart LR
    subgraph Exporters
        N[Besu Nodes] & S[Sequencers x3] & V[Committee validators + Aggregator] & X[Shared Reexecutor] & P[Main Validator / Proposer] & W[Watchers] & R[Relayer/Refueler] & E[Explorer]
    end
    Exporters -->|/metrics| PROM[Prometheus]
    Exporters -->|logs| LOGS[Log aggregation]
    PROM --> GRAF[Grafana]
    LOGS --> GRAF
    PROM --> AM[Alertmanager]
    AM --> CH[Email / Slack / PagerDuty]
```

## Metrics

| Domain                    | Key metrics                                                                                                                                             |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Node                      | Block height, peers, QBFT rounds, mempool size, RPC latency/errors                                                                                      |
| Sequencers (×3)           | Batch rate/size, attestations received (3 of 5 needed), data-certificate success, Sequencer Inbox submission latency, active/standby state, EOA balance |
| Committee validators (×5) | Signature participation per member, validation latency (≈1.4 s on testnet), mismatch / refused-to-sign events, member liveness                          |
| Gossip bus                | Connected members, signature propagation delay, dropped messages                                                                                        |
| Aggregator                | Time to reach 3 of 5, soft confirmations submitted / failed, which bundle is aggregating, EOA balance                                                   |
| Shared Reexecutor         | Up/down, replay latency, replay queue depth, state-root mismatches                                                                                      |
| Proposer (Main Validator) | Assertion rate/success, own-reexecutor replay latency, EOA balance                                                                                      |
| Rollup / Challenger (L1)  | Pending vs soft-confirmed vs confirmed assertions, challenge-window timers (120 s on testnet), open disputes                                            |
| Watchers                  | Liveness, lag behind the latest assertion, mismatches found, dispute-account balance                                                                    |
| Relayer                   | Deposit lag, events processed, failures                                                                                                                 |
| Explorer                  | Indexer lag, query latency                                                                                                                              |
| Host                      | CPU, memory, disk, network                                                                                                                              |

## Logs

* Centralized aggregation, structured (JSON) logs, retention tiers, searchable.

## Health Checks

* Liveness/readiness endpoints per service; used by NLB and orchestration.

## Prometheus & Grafana

* Prometheus scrapes `/metrics`; Grafana dashboards per component and platform-wide.
* Alertmanager routes alerts to on-call.

## Suggested Alerts

| Alert                     | Condition (example)                                  | Severity |
| ------------------------- | ---------------------------------------------------- | -------- |
| High CPU                  | `cpu > 85%` for 5m                                   | Warning  |
| High Memory               | `mem > 90%` for 5m                                   | Warning  |
| Low Disk                  | `disk_free < 15%`                                    | Critical |
| Disk trend                | Projected full < 7 days                              | Warning  |
| RPC failures              | `error_rate > 5%` for 5m                             | Critical |
| Node down                 | Peer/quorum loss                                     | Critical |
| Batch failures            | Batch submission errors                              | Critical |
| Validator failures        | Fewer than 3 of 5 members signing                    | Critical |
| Soft confirmation stalled | Assertion proposed but no soft confirmation in N min | Critical |
| Shared Reexecutor down    | Health check fails or replay latency above threshold | Critical |
| Gossip bus degraded       | Fewer than 3 members connected                       | Critical |
| Dispute opened            | New dispute on the Challenger                        | Critical |
| No active Watcher         | No independent Watcher heartbeat in N min            | Warning  |
| Proposer stale            | No assertion in N min                                | Critical |
| Deposit lag               | Relayer lag > threshold                              | Warning  |
| EOA low balance           | Below Refueler threshold                             | Warning  |
| Refueler source low       | Treasury near depletion                              | Critical |
| Dead-man's-switch         | Monitoring pipeline silent                           | Critical |

> \[!NOTE] Always alert on the monitoring pipeline itself (dead-man's-switch) so that a monitoring outage is not mistaken for a healthy system.

***

[← Security](https://docs.zetrix.com/zetrix-l2-documentation/reliability-and-security/security.md) · [Index](https://docs.zetrix.com/zetrix-l2-documentation/readme.md) · [Scaling Strategy →](https://docs.zetrix.com/zetrix-l2-documentation/reliability-and-security/scaling-strategy.md)
