github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/forkchoice/protoarray/metrics.go (about)

     1  package protoarray
     2  
     3  import (
     4  	"github.com/prometheus/client_golang/prometheus"
     5  	"github.com/prometheus/client_golang/prometheus/promauto"
     6  )
     7  
     8  var (
     9  	headSlotNumber = promauto.NewGauge(
    10  		prometheus.GaugeOpts{
    11  			Name: "proto_array_head_slot",
    12  			Help: "The slot number of the current head.",
    13  		},
    14  	)
    15  	nodeCount = promauto.NewGauge(
    16  		prometheus.GaugeOpts{
    17  			Name: "proto_array_node_count",
    18  			Help: "The number of nodes in the DAG array based store structure.",
    19  		},
    20  	)
    21  	headChangesCount = promauto.NewCounter(
    22  		prometheus.CounterOpts{
    23  			Name: "proto_array_head_changed_count",
    24  			Help: "The number of times head changes.",
    25  		},
    26  	)
    27  	calledHeadCount = promauto.NewCounter(
    28  		prometheus.CounterOpts{
    29  			Name: "proto_array_head_requested_count",
    30  			Help: "The number of times someone called head.",
    31  		},
    32  	)
    33  	processedBlockCount = promauto.NewCounter(
    34  		prometheus.CounterOpts{
    35  			Name: "proto_array_block_processed_count",
    36  			Help: "The number of times a block is processed for fork choice.",
    37  		},
    38  	)
    39  	processedAttestationCount = promauto.NewCounter(
    40  		prometheus.CounterOpts{
    41  			Name: "proto_array_attestation_processed_count",
    42  			Help: "The number of times an attestation is processed for fork choice.",
    43  		},
    44  	)
    45  	prunedCount = promauto.NewCounter(
    46  		prometheus.CounterOpts{
    47  			Name: "proto_array_pruned_count",
    48  			Help: "The number of times pruning happened.",
    49  		},
    50  	)
    51  )