ctaz-explorer

metrics guide

prometheus exporter for the crosslink feature net. scrape /metrics into your stack. all gauges prefixed ctaz_.

scrape config

scrape_configs:
  - job_name: ctaz-crosslink
    scrape_interval: 30s
    metrics_path: /metrics
    scheme: https
    static_configs:
      - targets: ['ctaz.zat-explorer.cash']

available metrics

nametypewhat it measures
ctaz_pow_tipgaugelatest pow block height seen
ctaz_pow_finalizedgaugelatest bft-finalized pow block height
ctaz_pow_finality_gap_blocksgaugepow blocks between finalized tip and pow tip
ctaz_peersgaugenumber of p2p peers connected
ctaz_bft_latest_signersgaugesigner count on the most recent observed bft cert
ctaz_bft_median_signersgaugemedian signer count over the recent window
ctaz_bft_min_signersgaugemin signer count in window
ctaz_bft_max_signersgaugemax signer count in window
ctaz_bft_latest_degradedgauge1 when latest cert is below degraded threshold
ctaz_bft_latest_pos_heightgaugepos height of the latest observed cert
ctaz_reorgs_observed_totalcounterreorgs observed since tracker start
ctaz_finalizers_activegaugesize of the active finalizer roster
ctaz_finalizers_silentgaugefinalizers absent from the last 50 plus observed certs
ctaz_stake_total_zatsgaugesum of voting power across roster in zatoshis
ctaz_staking_cycle_posgaugeposition inside the 150-block staking cycle
ctaz_staking_window_livegauge1 if the staking window is currently open
ctaz_staking_blocks_remaininggaugepow blocks left in the current staking window
ctaz_staking_next_window_ingaugepow blocks until the next window opens
ctaz_tracker_certs_observedgaugedistinct bft certs the tracker has seen
ctaz_tracker_pos_eventsgaugepos finalization events recorded
ctaz_tracker_heights_trackedgaugepow heights the reorg detector is tracking

grafana dashboard

download ctaz-crosslink-grafana.json and import into your grafana. pre-configured panels for pow tip, finalized height, finality gap, peers, bft signer trends, finalizer drop-off, reorgs, staking cycle, and total stake. refreshes every 30s, 1-hour default window.

import path in grafana: Dashboards, New, Import, Upload dashboard JSON file.

alerting suggestions

useful prometheus alert rules:

- alert: CtazBftDegraded
  expr: ctaz_bft_latest_degraded == 1
  for: 2m
  labels: {severity: warning}

- alert: CtazFinalityGapHigh
  expr: ctaz_pow_finality_gap_blocks > 50
  for: 5m
  labels: {severity: warning}

- alert: CtazPeersLow
  expr: ctaz_peers < 5
  for: 5m
  labels: {severity: warning}

- alert: CtazSilentFinalizers
  expr: ctaz_finalizers_silent >= 3
  for: 10m
  labels: {severity: info}

if you want to anchor metrics with zap1 attestations on zcash mainnet, protocol docs at api.frontiercompute.cash/docs. full developer hub at /devs. related: /chain-health for human-readable view of the same signals, /api/chain-health for json, /guide/staking for the operator reference.