Astraea API Server 0.6.1
An XRP Ledger API server with history you can check.

Metrics

astraea-ingest --metrics-addr serves Prometheus metrics on /metrics. Besides what a history server usually reports (requests, latency, load progress), they say how far the data can be trusted: how the last ledger was confirmed, which UNL lists are in effect, how proofs were built, and what part of history is served with state and with proofs.

§Trust

MetricTypeMeaning
astraea_ingest_confirmed_ledgergaugelast ledger confirmed by a quorum of UNL validators; every ledger before it is confirmed by the parent hash chain
astraea_quorum_signersgaugeUNL validators that signed the last confirmed ledger
astraea_quorum_neededgaugesignatures the quorum rule needed for it (80% of the whole UNL, full-unl)
astraea_unl_sizegaugevalidators in the UNL the decision was made with
astraea_unl_list_sequence{publisher}gaugesequence of each configured publisher’s latest list
astraea_unl_list_validators{publisher}gaugevalidators in that list
astraea_unl_list_expiration_timestamp_seconds{publisher}gaugewhen that list expires, Unix time
astraea_ingest_evidence_ledgergaugelast ledger with stored anchor evidence (written every 256 ledgers)
astraea_ingest_validations_total, _rejected_totalcountervalidations received with a valid signature, and rejected ones
astraea_proof_bundles_total{method,confirmed_by}counterevidence bundles built; confirmed_by is quorum, hash-chain or skip-list
astraea_proof_cache_hits_totalcounterbundles served from the cache of bundles that never change

astraea_quorum_signers - astraea_quorum_needed is the margin: how many validators can go quiet before confirmation stops.

§API

MetricTypeMeaning
astraea_api_requests_total{transport,method,status}counterrequests; status is success or the error name the client got
astraea_api_request_duration_seconds{method}histogramtime to answer
astraea_api_response_bytes_total{method}counterbytes of responses
astraea_api_forwarded_total{method}counterrequests the node answered rather than our own data
astraea_api_inflight{pool}gaugerequests being served now: api (32 slots), proof (4 slots, refused with tooBusy when full) and forward (16 slots) on --api-addr; public_api, public_proof and public_forward on the public listeners, sized by the --public-max-* flags
astraea_api_public_sessionsgaugeWebSocket sessions open on the public listeners
astraea_api_ws_sessions, _ws_sessions_totalgauge, counterWebSocket sessions open, and opened since start
astraea_api_subscribers{stream}gaugesessions subscribed to ledger, transactions, book_changes, validations, manifests, or to at least one account (accounts)
astraea_api_subscribed_accountsgaugeaccounts subscribed to, over all sessions
astraea_api_ws_dropped_totalcountersessions disconnected for not reading their messages
astraea_api_rejected_total{door,reason}counterrequests refused to protect the server; door is own or public, reason is connections, budget, sessions or busy

Method names a client made up are counted as other, so the series stay few.

§Loading

MetricTypeMeaning
astraea_ingest_tip_ledger, _last_ledgergaugethe node’s validated ledger, and the last one written
astraea_ingest_last_ledger_close_timestamp_secondsgaugewhen the network closed the last written ledger
astraea_ingest_ledgers_total, _transactions_total, _state_changes_totalcounterwritten since start
astraea_ingest_commit_seconds_totalcountertime spent writing ledgers: root checks, state, tree, blocks
astraea_ingest_source_errors_total, _missing_retries_totalcounterfailed requests to the node, and retries for a ledger it does not have
astraea_ingest_unknown_findings_totalcounterfields, transaction and object types, and result codes in written ledgers that this build’s definitions.json does not have; each one is logged with the ledger and the transaction or object. Such a ledger is stored as it came
astraea_ingest_unknown_last_ledgergaugethe last written ledger with such a finding; 0 if none since start
astraea_ingest_unknown_amendments_enabled, _majoritygaugeamendments in the latest Amendments object that this build does not list: enabled, and with a validator majority (enabled two weeks later unless the majority is lost). Checked every minute

Any of the last three above 0 means the network has moved past this build: see Updating for an xrpld release.

§History and storage

Refreshed every minute.

MetricTypeMeaning
astraea_history_first_ledger, _last_ledgergaugethe range the API serves
astraea_state_first_ledgergaugethe state snapshot: state methods start here
astraea_tree_history_first_ledgergaugefirst ledger with tree history: proof_entry starts here
astraea_cold_segments, astraea_cold_transactionsgaugecold history segments and the transactions in them
astraea_storage_bytes{part}gaugebytes on disk: state (the state store, with its indexes and tree history), hot_history, cold_segments, cold_indexes, and inside the state store index_tx, index_ledger_hash, index_account_tx, tree_history, and the NFT index index_nft_owner, index_nft_uri, index_nft_issuer, index_nft_tx

Cold bytes per transaction with all indexes: (astraea_storage_bytes{part="cold_segments"} + on(instance) astraea_storage_bytes{part="cold_indexes"}) / on(instance) astraea_cold_transactions.

§Process

The standard process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_threads and process_start_time_seconds, read from /proc/self (Linux only).