Skip to content

Commit

Permalink
fix: track new proposal duties detected
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jul 28, 2023
1 parent 62197de commit f3ed2ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/validator/src/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ export function getMetrics(register: MetricsRegister, gitData: LodestarGitData)
help: "Total count of instances the proposer duties dependant root changed",
}),

newProposalDutiesDetected: register.gauge({
name: "vc_new_proposal_duties_detected_total",
help: "Total count of times new proposal duties were detected",
}),

// IndicesService

indices: register.gauge({
Expand Down
2 changes: 1 addition & 1 deletion packages/validator/src/services/blockDuties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class BlockDutiesService {
if (additionalBlockProducers.length > 0) {
this.notifyBlockProductionFn(currentSlot, additionalBlockProducers);
this.logger.debug("Detected new block proposer", {currentSlot});
this.metrics?.proposerDutiesReorg.inc();
this.metrics?.newProposalDutiesDetected.inc();
}
}

Expand Down

0 comments on commit f3ed2ea

Please sign in to comment.