Categorygithub.com/zilliqa/zilliqa-exporter
modulepackage
0.0.17
Repository: https://github.com/zilliqa/zilliqa-exporter.git
Documentation: pkg.go.dev

# README

Zilliqa Exporter

A daemon that exports metrics of Zilliqa node as Open Metrics Format

Common Labels:

NameDescription
typetype of node, can auto detect from pod name or zilliqad commandline params. (normal,lookup,newlookup,level2lookup)
indexindex of node, can auto detect from pod name or zilliqad commandline params. (normal,lookup,newlookup,level2lookup)
pod_namenode's pod name, from env "POD_NAME" or "Z7A_POD_NAME"
pod_ipIP of the pod, from env "POD_IP", "Z7A_POD_IP"
cluster_namename of genet cluster, from env "CLUSTER_NAME"
network_namename of zilliqa network, from env "Z7A_TESTNET_NAME", "TESTNET_NAME", "NETWORK_NAME"
public_ippublic IP address, from AWS metadata
local_iplocal private IP address, from AWS metadata

Metrics & Source

Constant Collector

Collect constant info from environment variables, AWS metadata and Zilliqa commandline.

Only collect once when exporter starts.

MetricDescriptionSource
node_infoNode Information of zilliqa and host environmentCMD Options & EnvVars & AWS Metadata & Zilliqa Binary

API Collector

Collect info from zilliqa node's JSONRPC API server Only for Lookup, Seed, Seed-apipub(Level2Lookup)

MetricDescriptionMethodAdditional Labels
api_server_upJsonRPC API server up and running-endpoint
epochCurrent TX block number of the nodeGetBlockchainInfo-
ds_epochCurrent DS block number of the nodeGetBlockchainInfo-
transaction_rateCurrent transaction rateGetBlockchainInfo-
tx_block_rateCurrent TX block rateGetBlockchainInfo-
ds_block_rateCurrent DS block rateGetBlockchainInfo-
num_peersPeers countGetBlockchainInfo-
sharding_peersPeers count of every shardGetBlockchainInfoshard_index (of shard)
num_txns_tx_epochnumTxnsTxEpochGetBlockchainInfo-
num_txns_ds_epochnumTxnsDSEpochGetBlockchainInfo-
num_transactionsTransactions countGetBlockchainInfo-
difficultyThe minimum shard difficulty of the previous blockGetPrevDifficulty-
ds_difficultyThe minimum DS difficulty of the previous blockGetPrevDSDifficulty-
network_idNetwork ID of current zilliqa networkGetNetworkId-
latest_txblock_timestampThe timestamp of the latest tx block (milliseconds)GetLatestTxBlock-
latest_dsblock_timestampThe timestamp of the latest ds block (milliseconds)GetLatestDsBlock-

Mainnet Only Metrics (scheduled):

MetricDescriptionMethodPeriod
ud_state_sizeState data size of unstoppable domain contractGetSmartContractState1h
ud_state_entriesState records of unstoppable domain contractGetSmartContractState1h

Admin Collector

Collect info from zilliqa node's Admin API server (Status Server)

MetricDescriptionMethodAdditional Labels
admin_server_upAdmin JsonRPC server up and running-endpoint
node_typeZilliqa network node typeGetNodeTypetext (representative of node type)

Only for Shard Node:

MetricDescriptionMethodAdditional Labels
shard_idShard ID of the shard of current nodeGetNodeType-
epochCurrent TX block number of the nodeGetBlockchainInfo-
ds_epochCurrent DS block number of the nodeGetBlockchainInfo-
difficultyThe minimum shard difficulty of the previous blockGetPrevDifficulty-
ds_difficultyThe minimum DS difficulty of the previous blockGetPrevDSDifficulty-

Not implemented Yet:

MetricDescriptionMethodAdditional Labels
node_stateNode stateGetNodeState-

ProcessInfo Collector

Get running process information

LabelDescription
process_nameProcess Name
pidProcess ID
cwdCurrent working directory
MetricDescriptionunitAdditional Labels
zilliqa_process_runningIf zilliqa process is running-
synctypeSynctype from zilliqa commandline option-
nodetypeNodetype from zilliqa commandline option-text (representative of node type)
nodeindexNodeindex from zilliqa commandline option-
node_uptimeUptime of zilliqa node (unix timestamp)milliseconds
connection_countNetwork Connection count of zilliqa process-local_port, status
thread_countThread count of zilliqa process-
fd_countOpened file descriptor count of zilliqa process-
storage_totalTotal capacity of zilliqa persistence storage (cwd)bytes
storage_usedUsed space of zilliqa persistence storage (cwd)bytes

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author