github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/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 LabelSuccess = "success" 21 LabelMisbehavior = "misbehavior" 22 LabelHandler = "handler" 23 LabelStatusCode = "code" 24 LabelMethod = "method" 25 LabelService = "service" 26 LabelRejectionReason = "rejection_reason" 27 LabelAccountAddress = "acct_address" // Account address for a machine account 28 ) 29 30 const ( 31 // collection 32 EngineClusterCompliance = "collection_compliance" 33 EngineCollectionMessageHub = "collection_message_hub" 34 EngineCollectionIngest = "collection_ingest" 35 EngineCollectionProvider = "collection_provider" 36 EngineClusterSynchronization = "cluster-sync" 37 // consensus 38 EnginePropagation = "propagation" 39 EngineCompliance = "compliance" 40 EngineConsensusMessageHub = "consensus_message_hub" 41 EngineConsensusIngestion = "consensus_ingestion" 42 EngineSealing = "sealing" 43 EngineSynchronization = "sync" 44 // common 45 EngineFollower = "follower" 46 EngineVoteAggregator = "vote_aggregator" 47 EngineTimeoutAggregator = "timeout_aggregator" 48 ) 49 50 const ( 51 ResourceUndefined = "undefined" 52 ResourceProposal = "proposal" 53 ResourceHeader = "header" 54 ResourceFinalizedHeight = "finalized_height" 55 ResourceIndex = "index" 56 ResourceIdentity = "identity" 57 ResourceGuarantee = "guarantee" 58 ResourceResult = "result" 59 ResourceResultApprovals = "result_approvals" 60 ResourceReceipt = "receipt" 61 ResourceQC = "qc" 62 ResourceMyReceipt = "my_receipt" 63 ResourceCollection = "collection" 64 ResourceProtocolState = "protocol_state" 65 ResourceProtocolStateByBlockID = "protocol_state_by_block_id" 66 ResourceProtocolKVStore = "protocol_kv_store" 67 ResourceProtocolKVStoreByBlockID = "protocol_kv_store_by_block_id" 68 ResourceApproval = "approval" 69 ResourceSeal = "seal" 70 ResourcePendingIncorporatedSeal = "pending_incorporated_seal" 71 ResourceCommit = "commit" 72 ResourceTransaction = "transaction" 73 ResourceClusterPayload = "cluster_payload" 74 ResourceClusterProposal = "cluster_proposal" 75 ResourceProcessedResultID = "processed_result_id" // verification node, finder engine // TODO: remove finder engine labels 76 ResourceDiscardedResultID = "discarded_result_id" // verification node, finder engine 77 ResourcePendingReceipt = "pending_receipt" // verification node, finder engine 78 ResourceReceiptIDsByResult = "receipt_ids_by_result" // verification node, finder engine 79 ResourcePendingReceiptIDsByBlock = "pending_receipt_ids_by_block" // verification node, finder engine 80 ResourcePendingResult = "pending_result" // verification node, match engine 81 ResourceChunkIDsByResult = "chunk_ids_by_result" // verification node, match engine 82 ResourcePendingChunk = "pending_chunk" // verification node, match engine 83 ResourcePendingBlock = "pending_block" // verification node, match engine 84 ResourceCachedReceipt = "cached_receipt" // verification node, finder engine 85 ResourceCachedBlockID = "cached_block_id" // verification node, finder engine 86 ResourceChunkStatus = "chunk_status" // verification node, fetcher engine 87 ResourceChunkRequest = "chunk_request" // verification node, requester engine 88 ResourceChunkConsumer = "chunk_consumer_jobs" // verification node 89 ResourceBlockConsumer = "block_consumer_jobs" // verification node 90 ResourceEpochSetup = "epoch_setup" 91 ResourceEpochCommit = "epoch_commit" 92 ResourceEpochStatus = "epoch_status" 93 ResourceNetworkingReceiveCache = "networking_received_message" // networking layer 94 ResourceNetworkingSubscriptionRecordsCache = "subscription_records_cache" // networking layer 95 ResourceNetworkingDnsIpCache = "networking_dns_ip_cache" // networking layer 96 ResourceNetworkingDnsTxtCache = "networking_dns_txt_cache" // networking layer 97 ResourceNetworkingDisallowListNotificationQueue = "networking_disallow_list_notification_queue" 98 ResourceNetworkingRpcInspectorNotificationQueue = "networking_rpc_inspector_notification_queue" 99 ResourceNetworkingRpcValidationInspectorQueue = "networking_rpc_validation_inspector_queue" 100 ResourceNetworkingApplicationLayerSpamRecordCache = "application_layer_spam_record_cache" 101 ResourceNetworkingApplicationLayerSpamReportQueue = "application_layer_spam_report_queue" 102 ResourceNetworkingRpcClusterPrefixReceivedCache = "rpc_cluster_prefixed_received_cache" 103 ResourceNetworkingAppSpecificScoreUpdateQueue = "gossipsub_app_specific_score_update_queue" 104 ResourceNetworkingGossipSubApplicationSpecificScoreCache = "gossipsub_application_specific_score_cache" 105 ResourceNetworkingGossipSubSpamRecordCache = "gossipsub_spam_record_cache" 106 ResourceNetworkingDisallowListCache = "disallow_list_cache" 107 ResourceNetworkingRPCSentTrackerCache = "gossipsub_rpc_sent_tracker_cache" 108 ResourceNetworkingRPCSentTrackerQueue = "gossipsub_rpc_sent_tracker_queue" 109 ResourceNetworkingUnicastDialConfigCache = "unicast_dial_config_cache" 110 ResourceNetworkingGossipsubDuplicateMessagesTrackerCache = "gossipsub_duplicate_messages_tracker_cache" 111 112 ResourceFollowerPendingBlocksCache = "follower_pending_block_cache" // follower engine 113 ResourceFollowerLoopCertifiedBlocksChannel = "follower_loop_certified_blocks_channel" // follower loop, certified blocks buffered channel 114 ResourceClusterBlockProposalQueue = "cluster_compliance_proposal_queue" // collection node, compliance engine 115 ResourceTransactionIngestQueue = "ingest_transaction_queue" // collection node, ingest engine 116 ResourceBeaconKey = "beacon-key" // consensus node, DKG engine 117 ResourceDKGMessage = "dkg_private_message" // consensus, DKG messaging engine 118 ResourceApprovalQueue = "sealing_approval_queue" // consensus node, sealing engine 119 ResourceReceiptQueue = "sealing_receipt_queue" // consensus node, sealing engine 120 ResourceApprovalResponseQueue = "sealing_approval_response_queue" // consensus node, sealing engine 121 ResourceBlockResponseQueue = "compliance_block_response_queue" // consensus node, compliance engine 122 ResourceBlockProposalQueue = "compliance_proposal_queue" // consensus node, compliance engine 123 ResourceBlockVoteQueue = "vote_aggregator_queue" // consensus/collection node, vote aggregator 124 ResourceTimeoutObjectQueue = "timeout_aggregator_queue" // consensus/collection node, timeout aggregator 125 ResourceCollectionGuaranteesQueue = "ingestion_col_guarantee_queue" // consensus node, ingestion engine 126 ResourceChunkDataPack = "chunk_data_pack" // execution node 127 ResourceChunkDataPackRequests = "chunk_data_pack_request" // execution node 128 ResourceEvents = "events" // execution node 129 ResourceServiceEvents = "service_events" // execution node 130 ResourceTransactionResults = "transaction_results" // execution node 131 ResourceTransactionResultIndices = "transaction_result_indices" // execution node 132 ResourceTransactionResultByBlock = "transaction_result_by_block" // execution node 133 ResourceExecutionDataCache = "execution_data_cache" // access node 134 ) 135 136 const ( 137 MessageCollectionGuarantee = "guarantee" 138 MessageBlockProposal = "proposal" 139 MessageBlockVote = "vote" 140 MessageTimeoutObject = "timeout_object" 141 MessageExecutionReceipt = "receipt" 142 MessageResultApproval = "approval" 143 MessageSyncRequest = "ping" 144 MessageSyncResponse = "pong" 145 MessageRangeRequest = "range" 146 MessageBatchRequest = "batch" 147 MessageBlockResponse = "block" 148 MessageSyncedBlocks = "synced_blocks" 149 MessageSyncedClusterBlock = "synced_cluster_block" 150 MessageTransaction = "transaction" 151 MessageSubmitGuarantee = "submit_guarantee" 152 MessageCollectionRequest = "collection_request" 153 MessageCollectionResponse = "collection_response" 154 MessageEntityRequest = "entity_request" 155 MessageEntityResponse = "entity_response" 156 ) 157 158 const ExecutionDataRequestRetryable = "retryable" 159 160 const LabelViolationReason = "reason" 161 const LabelRateLimitReason = "reason"