Skip to main content

LABELS

Constant LABELS 

Source
pub const LABELS: &[(&str, &[&str])];
Expand description

The label keys of each labelled metric this crate records.

  • network: mainnet, testnet, or regtest.
  • direction: inbound or outbound.
  • address_family: ipv4 or ipv6.
  • implementation: zebra, zakura, legacy_zcashd, or other, from the peer’s user agent.
  • stage: admission, tcp_connect, tcp_or_handshake, version, handshake, or unknown.
  • outcome: success, canceled, banned, capacity_or_rate_limited, or a handshake or I/O error kind such as timeout, connection_refused, or obsolete_version.
  • command: a Zcash protocol command, a request or response name, or, for zebra.net.connection.state, a connection state such as AwaitingRequest.
  • error: a serialization error kind: io, parse, utf8_error, try_from_slice_error, try_from_int_error, from_hex_error, amount, bad_transaction_balance, script, opcode, or num.
  • result: success or failure.
  • reason: for handshake failures, unexpected_message, nonce_reuse, duplicate_nonce, connection_closed, io_error, serialization, obsolete_version, missing_required_services, or timeout; for peer set fallbacks, no_serving_peer, queue_full, or expired.
  • kind: instant or waited.
  • remote_version and negotiated_version: a protocol version Zebra knows, or other.
  • min_version: the minimum protocol version Zebra accepts for the current network upgrade.
  • missing_service: the required service a rejected peer doesn’t provide: NODE_NETWORK, meaning the peer doesn’t serve full history because it doesn’t advertise NODE_NETWORK, or advertises it with NODE_PRUNED.
  • seed: on the zcash.net.peers.initial series that count the peers from configured initial peers, the configured entry when it is one of Zebra’s default DNS seeders, or custom for any other entry. The series without it counts the peers from the peer cache file.