@@ -2,7 +2,7 @@ import {EpochTransitionStep, StateCloneSource, StateHashTreeRootSource} from "@l
2
2
import { BeaconState } from "@lodestar/types" ;
3
3
import { BlobsSource , BlockSource } from "../../chain/blocks/types.js" ;
4
4
import { JobQueueItemType } from "../../chain/bls/index.js" ;
5
- import { BlockErrorCode } from "../../chain/errors/index.js" ;
5
+ import { AttestationErrorCode , BlockErrorCode } from "../../chain/errors/index.js" ;
6
6
import { InsertOutcome } from "../../chain/opPools/types.js" ;
7
7
import { RegenCaller , RegenFnName } from "../../chain/regen/interface.js" ;
8
8
import { ReprocessStatus } from "../../chain/reprocess.js" ;
@@ -116,6 +116,16 @@ export function createLodestarMetrics(
116
116
help : "Count of total gossip validation errors detailed" ,
117
117
labelNames : [ "topic" , "error" ] ,
118
118
} ) ,
119
+ gossipAttestationIgnoreByReason : register . gauge < { reason : AttestationErrorCode } > ( {
120
+ name : "lodestar_gossip_attestation_ignore_by_reason_total" ,
121
+ help : "Count of total gossip attestation ignore by reason" ,
122
+ labelNames : [ "reason" ] ,
123
+ } ) ,
124
+ gossipAttestationRejectByReason : register . gauge < { reason : AttestationErrorCode } > ( {
125
+ name : "lodestar_gossip_attestation_reject_by_reason_total" ,
126
+ help : "Count of total gossip attestation reject by reason" ,
127
+ labelNames : [ "reason" ] ,
128
+ } ) ,
119
129
executeWorkCalls : register . gauge ( {
120
130
name : "lodestar_network_processor_execute_work_calls_total" ,
121
131
help : "Total calls to network processor execute work fn" ,
0 commit comments