-
Notifications
You must be signed in to change notification settings - Fork 175
/
labels.go
121 lines (115 loc) · 6.28 KB
/
labels.go
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package metrics
const (
LabelChannel = "topic"
LabelChain = "chain"
LabelProposer = "proposer"
EngineLabel = "engine"
LabelResource = "resource"
LabelMessage = "message"
LabelNodeID = "nodeid"
LabelNodeAddress = "nodeaddress"
LabelNodeRole = "noderole"
LabelNodeInfo = "nodeinfo"
LabelNodeVersion = "nodeversion"
LabelPriority = "priority"
)
const (
ChannelOneToOne = "OneToOne"
ChannelOneToOneUnstaked = "OneToOneUnstaked"
)
const (
// collection
EngineClusterCompliance = "proposal"
EngineCollectionIngest = "collection_ingest"
EngineCollectionProvider = "collection_provider"
EngineClusterSynchronization = "cluster-sync"
// consensus
EnginePropagation = "propagation"
EngineCompliance = "compliance"
EngineConsensusProvider = "consensus_provider"
EngineConsensusIngestion = "consensus_ingestion"
EngineSealing = "sealing"
EngineSynchronization = "sync"
// common
EngineFollower = "follower"
)
const (
ResourceUndefined = "undefined"
ResourceProposal = "proposal"
ResourceHeader = "header"
ResourceFinalizedHeight = "finalized_height"
ResourceIndex = "index"
ResourceIdentity = "identity"
ResourceGuarantee = "guarantee"
ResourceResult = "result"
ResourceResultApprovals = "result_approvals"
ResourceReceipt = "receipt"
ResourceMyReceipt = "my_receipt"
ResourceCollection = "collection"
ResourceApproval = "approval"
ResourceSeal = "seal"
ResourcePendingIncorporatedSeal = "pending_incorporated_seal"
ResourceCommit = "commit"
ResourceTransaction = "transaction"
ResourceClusterPayload = "cluster_payload"
ResourceClusterProposal = "cluster_proposal"
ResourceProcessedResultID = "processed_result_id" // verification node, finder engine // TODO: remove finder engine labels
ResourceDiscardedResultID = "discarded_result_id" // verification node, finder engine
ResourcePendingReceipt = "pending_receipt" // verification node, finder engine
ResourceReceiptIDsByResult = "receipt_ids_by_result" // verification node, finder engine
ResourcePendingReceiptIDsByBlock = "pending_receipt_ids_by_block" // verification node, finder engine
ResourcePendingResult = "pending_result" // verification node, match engine
ResourceChunkIDsByResult = "chunk_ids_by_result" // verification node, match engine
ResourcePendingChunk = "pending_chunk" // verification node, match engine
ResourcePendingBlock = "pending_block" // verification node, match engine
ResourceCachedReceipt = "cached_receipt" // verification node, finder engine
ResourceCachedBlockID = "cached_block_id" // verification node, finder engine
ResourceChunkStatus = "chunk_status" // verification node, fetcher engine
ResourceChunkRequest = "chunk_request" // verification node, requester engine
ResourceChunkConsumer = "chunk_consumer_jobs" // verification node
ResourceBlockConsumer = "block_consumer_jobs" // verification node
ResourceEpochSetup = "epoch_setup"
ResourceEpochCommit = "epoch_commit"
ResourceEpochStatus = "epoch_status"
ResourceNetworkingReceiveCache = "networking_received_message" // networking layer
ResourceNetworkingDnsIpCache = "networking_dns_ip_cache" // networking layer
ResourceNetworkingDnsTxtCache = "networking_dns_txt_cache" // networking layer
ResourceClusterBlockProposalQueue = "cluster_compliance_proposal_queue" // collection node, compliance engine
ResourceClusterBlockVoteQueue = "cluster_compliance_vote_queue" // collection node, compliance engine
ResourceTransactionIngestQueue = "ingest_transaction_queue" // collection node, ingest engine
ResourceBeaconKey = "beacon-key" // consensus node, DKG engine
ResourceApprovalQueue = "sealing_approval_queue" // consensus node, sealing engine
ResourceReceiptQueue = "sealing_receipt_queue" // consensus node, sealing engine
ResourceApprovalResponseQueue = "sealing_approval_response_queue" // consensus node, sealing engine
ResourceBlockProposalQueue = "compliance_proposal_queue" // consensus node, compliance engine
ResourceBlockVoteQueue = "compliance_vote_queue" // consensus node, compliance engine
ResourceCollectionGuaranteesQueue = "ingestion_col_guarantee_queue" // consensus node, ingestion engine
ResourceChunkDataPack = "chunk_data_pack" // execution node
ResourceEvents = "events" // execution node
ResourceServiceEvents = "service_events" // execution node
ResourceTransactionResults = "transaction_results" // execution node
ResourceTransactionResultIndices = "transaction_result_indices" // execution node
)
const (
MessageCollectionGuarantee = "guarantee"
MessageBlockProposal = "proposal"
MessageBlockVote = "vote"
MessageExecutionReceipt = "receipt"
MessageResultApproval = "approval"
MessageSyncRequest = "ping"
MessageSyncResponse = "pong"
MessageRangeRequest = "range"
MessageBatchRequest = "batch"
MessageBlockResponse = "block"
MessageSyncedBlock = "synced_block"
MessageClusterBlockProposal = "cluster_proposal"
MessageClusterBlockVote = "cluster_vote"
MessageClusterBlockResponse = "cluster_block_response"
MessageSyncedClusterBlock = "synced_cluster_block"
MessageTransaction = "transaction"
MessageSubmitGuarantee = "submit_guarantee"
MessageCollectionRequest = "collection_request"
MessageCollectionResponse = "collection_response"
MessageEntityRequest = "entity_request"
MessageEntityResponse = "entity_response"
)