Skip to content

Instantly share code, notes, and snippets.

@JackyWYX
Created October 29, 2021 20:16
Show Gist options
  • Save JackyWYX/874e571400d2362816e28afb5653dc09 to your computer and use it in GitHub Desktop.
Save JackyWYX/874e571400d2362816e28afb5653dc09 to your computer and use it in GitHub Desktop.
prometheus metrics 2
➜ ~ curl localhost:9900/metrics
# HELP hmy_consensus_blskeys list of bls pubkey
# TYPE hmy_consensus_blskeys gauge
hmy_consensus_blskeys{index="0",pubkey="ea5b6acfb9146ef566bf05bc3a806988180684d7494d9bfe765afacfb2d9467de7864ece64b9ab7150c806c549d9b504"} 0
# HELP hmy_consensus_finality the latency of the finality
# TYPE hmy_consensus_finality histogram
hmy_consensus_finality_bucket{le="800"} 0
hmy_consensus_finality_bucket{le="1000"} 0
hmy_consensus_finality_bucket{le="1250"} 0
hmy_consensus_finality_bucket{le="1562.5"} 0
hmy_consensus_finality_bucket{le="1953.125"} 0
hmy_consensus_finality_bucket{le="2441.40625"} 0
hmy_consensus_finality_bucket{le="3051.7578125"} 0
hmy_consensus_finality_bucket{le="3814.697265625"} 0
hmy_consensus_finality_bucket{le="4768.37158203125"} 0
hmy_consensus_finality_bucket{le="5960.4644775390625"} 0
hmy_consensus_finality_bucket{le="+Inf"} 0
hmy_consensus_finality_sum 0
hmy_consensus_finality_count 0
# HELP hmy_consensus_sync counter of blockchain syncing state
# TYPE hmy_consensus_sync counter
hmy_consensus_sync{consensus="out_of_sync"} 1
# HELP hmy_downloader_num_blocks_inserted_beacon_helper number of blocks inserted from beacon helper
# TYPE hmy_downloader_num_blocks_inserted_beacon_helper counter
hmy_downloader_num_blocks_inserted_beacon_helper 0
# HELP hmy_node_metadata a list of node metadata
# TYPE hmy_node_metadata counter
hmy_node_metadata{key="peerid",value="Qmaa29zzkKC9mAuWhFVWVDo9Eqfy7V2XZntxvFiRXA8iE1"} 1
hmy_node_metadata{key="version",value="Harmony (C) 2020. harmony, version v7196-v4.3.0-22-g7b05f6de4 (yanxiangwang@ 2021-10-29T13:14:17-0700)"} 1
# HELP hmy_p2p_consensus_msg number of consensus messages
# TYPE hmy_p2p_consensus_msg counter
hmy_p2p_consensus_msg{type="ignored"} 2535
hmy_p2p_consensus_msg{type="valid"} 38
# HELP hmy_p2p_crosslink_msg number of crosslink messages
# TYPE hmy_p2p_crosslink_msg counter
hmy_p2p_crosslink_msg{type="invalid_crosslink"} 208
# HELP hmy_p2p_message number of p2p messages
# TYPE hmy_p2p_message counter
hmy_p2p_message{type="consensus_total"} 2573
hmy_p2p_message{type="node_total"} 808
hmy_p2p_message{type="total"} 3381
# HELP hmy_p2p_node_msg number of node messages
# TYPE hmy_p2p_node_msg counter
hmy_p2p_node_msg{type="block_sync"} 52
hmy_p2p_node_msg{type="crosslink"} 95
hmy_p2p_node_msg{type="staking_tx"} 2
hmy_p2p_node_msg{type="tx"} 659
# HELP hmy_rpc2_delay_histogram delays histogram in seconds
# TYPE hmy_rpc2_delay_histogram histogram
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="0.05"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="0.1"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="0.2"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="0.4"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="0.8"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="1.6"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="3.2"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="6.4"} 5
hmy_rpc2_delay_histogram_bucket{method="hmyv2_inSync",le="+Inf"} 5
hmy_rpc2_delay_histogram_sum{method="hmyv2_inSync"} 0.000197853
hmy_rpc2_delay_histogram_count{method="hmyv2_inSync"} 5
# HELP hmy_rpc2_request_count counters for each RPC method
# TYPE hmy_rpc2_request_count counter
hmy_rpc2_request_count{method="hmyv2_inSync"} 5
# HELP hmy_rpc_over_ratelimit number of times triggered rpc rate limit
# TYPE hmy_rpc_over_ratelimit counter
hmy_rpc_over_ratelimit{rate_limit="1000"} 0
# HELP hmy_stream_bytes_read total bytes read from stream
# TYPE hmy_stream_bytes_read counter
hmy_stream_bytes_read 0
# HELP hmy_stream_bytes_write total bytes write to stream
# TYPE hmy_stream_bytes_write counter
hmy_stream_bytes_write 0
# HELP hmy_stream_msg_read number of messages read from stream
# TYPE hmy_stream_msg_read counter
hmy_stream_msg_read 0
# HELP hmy_stream_msg_write number of messages write to stream
# TYPE hmy_stream_msg_write counter
hmy_stream_msg_write 0
# HELP hmy_stream_num_server_request number of incoming requests as server
# TYPE hmy_stream_num_server_request counter
hmy_stream_num_server_request 0
# HELP hmy_stream_server_request_delay delay in seconds of incoming requests of server
# TYPE hmy_stream_server_request_delay histogram
hmy_stream_server_request_delay_bucket{le="0.01"} 0
hmy_stream_server_request_delay_bucket{le="0.02"} 0
hmy_stream_server_request_delay_bucket{le="0.04"} 0
hmy_stream_server_request_delay_bucket{le="0.08"} 0
hmy_stream_server_request_delay_bucket{le="0.16"} 0
hmy_stream_server_request_delay_bucket{le="+Inf"} 0
hmy_stream_server_request_delay_sum 0
hmy_stream_server_request_delay_count 0
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 1
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment