summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/geth/metrics.go
blob: 642973d694ccb164f69bd7e015d6c77395258394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// SPDX-License-Identifier: GPL-3.0-or-later

package geth

// summary
const (
	chainValidation  = "chain_validation"
	chainWrite       = "chain_write"
	chainHeadBlock   = "chain_head_block"
	chainHeadHeader  = "chain_head_header"
	chainHeadReceipt = "chain_head_receipt"
)

// + rate
const (
	ethDbChainDataAncientRead  = "eth_db_chaindata_ancient_read"
	ethDbChainDataAncientWrite = "eth_db_chaindata_ancient_write"
	ethDbChaindataDiskRead     = "eth_db_chaindata_disk_read"
	ethDbChainDataDiskWrite    = "eth_db_chaindata_disk_write"
	ethDbChainDataDiskSize     = "eth_db_chaindata_disk_size"
	ethDbChainDataAncientSize  = "eth_db_chaindata_ancient_size"

	txPoolInvalid          = "txpool_invalid"
	txPoolPending          = "txpool_pending"
	txPoolLocal            = "txpool_local"
	txPoolPendingDiscard   = "txpool_pending_discard"
	txPoolNofunds          = "txpool_pending_nofunds"
	txPoolPendingRatelimit = "txpool_pending_ratelimit"
	txPoolPendingReplace   = "txpool_pending_replace"
	txPoolQueuedDiscard    = "txpool_queued_discard"
	txPoolQueuedEviction   = "txpool_queued_eviction"
	txPoolQueuedNofunds    = "txpool_queued_nofunds"
	txPoolQueuedRatelimit  = "txpool_queued_ratelimit"
)

const (
	// gauge
	p2pEgress  = "p2p_egress"
	p2pIngress = "p2p_ingress"

	p2pPeers  = "p2p_peers"
	p2pServes = "p2p_serves"
	p2pDials  = "p2p_dials"

	rpcRequests = "rpc_requests"
	rpcSuccess  = "rpc_success"
	rpcFailure  = "rpc_failure"

	reorgsAdd      = "chain_reorg_add"
	reorgsExecuted = "chain_reorg_executes"
	reorgsDropped  = "chain_reorg_drop"

	goRoutines = "system_cpu_goroutines"
)