github.com/koko1123/flow-go-1@v0.29.6/module/metrics/labels.go (about) 1 package metrics 2 3 const ( 4 LabelChannel = "topic" 5 LabelChain = "chain" 6 LabelProposer = "proposer" 7 EngineLabel = "engine" 8 LabelResource = "resource" 9 LabelProtocol = "protocol" 10 LabelMessage = "message" 11 LabelNodeID = "nodeid" 12 LabelNodeAddress = "nodeaddress" 13 LabelNodeRole = "noderole" 14 LabelNodeInfo = "nodeinfo" 15 LabelNodeVersion = "nodeversion" 16 LabelPriority = "priority" 17 LabelComputationKind = "computationKind" 18 LabelConnectionDirection = "direction" 19 LabelConnectionUseFD = "usefd" // whether the connection is using a file descriptor 20 ) 21 22 const ( 23 // collection 24 EngineClusterCompliance = "proposal" 25 EngineCollectionIngest = "collection_ingest" 26 EngineCollectionProvider = "collection_provider" 27 EngineClusterSynchronization = "cluster-sync" 28 // consensus 29 EnginePropagation = "propagation" 30 EngineCompliance = "compliance" 31 EngineConsensusProvider = "consensus_provider" 32 EngineConsensusIngestion = "consensus_ingestion" 33 EngineSealing = "sealing" 34 EngineSynchronization = "sync" 35 // common 36 EngineFollower = "follower" 37 ) 38 39 const ( 40 ResourceUndefined = "undefined" 41 ResourceProposal = "proposal" 42 ResourceHeader = "header" 43 ResourceFinalizedHeight = "finalized_height" 44 ResourceIndex = "index" 45 ResourceIdentity = "identity" 46 ResourceGuarantee = "guarantee" 47 ResourceResult = "result" 48 ResourceResultApprovals = "result_approvals" 49 ResourceReceipt = "receipt" 50 ResourceMyReceipt = "my_receipt" 51 ResourceCollection = "collection" 52 ResourceApproval = "approval" 53 ResourceSeal = "seal" 54 ResourcePendingIncorporatedSeal = "pending_incorporated_seal" 55 ResourceCommit = "commit" 56 ResourceTransaction = "transaction" 57 ResourceClusterPayload = "cluster_payload" 58 ResourceClusterProposal = "cluster_proposal" 59 ResourceProcessedResultID = "processed_result_id" // verification node, finder engine // TODO: remove finder engine labels 60 ResourceDiscardedResultID = "discarded_result_id" // verification node, finder engine 61 ResourcePendingReceipt = "pending_receipt" // verification node, finder engine 62 ResourceReceiptIDsByResult = "receipt_ids_by_result" // verification node, finder engine 63 ResourcePendingReceiptIDsByBlock = "pending_receipt_ids_by_block" // verification node, finder engine 64 ResourcePendingResult = "pending_result" // verification node, match engine 65 ResourceChunkIDsByResult = "chunk_ids_by_result" // verification node, match engine 66 ResourcePendingChunk = "pending_chunk" // verification node, match engine 67 ResourcePendingBlock = "pending_block" // verification node, match engine 68 ResourceCachedReceipt = "cached_receipt" // verification node, finder engine 69 ResourceCachedBlockID = "cached_block_id" // verification node, finder engine 70 ResourceChunkStatus = "chunk_status" // verification node, fetcher engine 71 ResourceChunkRequest = "chunk_request" // verification node, requester engine 72 ResourceChunkConsumer = "chunk_consumer_jobs" // verification node 73 ResourceBlockConsumer = "block_consumer_jobs" // verification node 74 ResourceEpochSetup = "epoch_setup" 75 ResourceEpochCommit = "epoch_commit" 76 ResourceEpochStatus = "epoch_status" 77 ResourceNetworkingReceiveCache = "networking_received_message" // networking layer 78 ResourcePublicNetworkingReceiveCache = "public_networking_received_message" // networking layer 79 ResourceNetworkingDnsIpCache = "networking_dns_ip_cache" // networking layer 80 ResourceNetworkingDnsTxtCache = "networking_dns_txt_cache" // networking layer 81 82 ResourceClusterBlockProposalQueue = "cluster_compliance_proposal_queue" // collection node, compliance engine 83 ResourceClusterBlockVoteQueue = "cluster_compliance_vote_queue" // collection node, compliance engine 84 ResourceTransactionIngestQueue = "ingest_transaction_queue" // collection node, ingest engine 85 ResourceBeaconKey = "beacon-key" // consensus node, DKG engine 86 ResourceApprovalQueue = "sealing_approval_queue" // consensus node, sealing engine 87 ResourceReceiptQueue = "sealing_receipt_queue" // consensus node, sealing engine 88 ResourceApprovalResponseQueue = "sealing_approval_response_queue" // consensus node, sealing engine 89 ResourceBlockResponseQueue = "compliance_block_response_queue" // consensus node, compliance engine 90 ResourceBlockProposalQueue = "compliance_proposal_queue" // consensus node, compliance engine 91 ResourceBlockVoteQueue = "compliance_vote_queue" // consensus node, compliance engine 92 ResourceCollectionGuaranteesQueue = "ingestion_col_guarantee_queue" // consensus node, ingestion engine 93 ResourceChunkDataPack = "chunk_data_pack" // execution node 94 ResourceChunkDataPackRequests = "chunk_data_pack_request" // execution node 95 ResourceEvents = "events" // execution node 96 ResourceServiceEvents = "service_events" // execution node 97 ResourceTransactionResults = "transaction_results" // execution node 98 ResourceTransactionResultIndices = "transaction_result_indices" // execution node 99 ResourceTransactionResultByBlock = "transaction_result_by_block" // execution node 100 ) 101 102 const ( 103 MessageCollectionGuarantee = "guarantee" 104 MessageBlockProposal = "proposal" 105 MessageBlockVote = "vote" 106 MessageExecutionReceipt = "receipt" 107 MessageResultApproval = "approval" 108 MessageSyncRequest = "ping" 109 MessageSyncResponse = "pong" 110 MessageRangeRequest = "range" 111 MessageBatchRequest = "batch" 112 MessageBlockResponse = "block" 113 MessageSyncedBlock = "synced_block" 114 MessageClusterBlockProposal = "cluster_proposal" 115 MessageClusterBlockVote = "cluster_vote" 116 MessageClusterBlockResponse = "cluster_block_response" 117 MessageSyncedClusterBlock = "synced_cluster_block" 118 MessageTransaction = "transaction" 119 MessageSubmitGuarantee = "submit_guarantee" 120 MessageCollectionRequest = "collection_request" 121 MessageCollectionResponse = "collection_response" 122 MessageEntityRequest = "entity_request" 123 MessageEntityResponse = "entity_response" 124 ) 125 126 const ExecutionDataRequestRetryable = "retryable" 127 128 const LabelViolationReason = "reason" 129 const LabelRateLimitReason = "reason"