Skip to content

Commit

Permalink
chore: add type to cpStateCache size metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 4, 2024
1 parent fd75dee commit f0bb670
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/beacon-node/src/metrics/metrics/lodestar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1053,13 +1053,15 @@ export function createLodestarMetrics(
name: "lodestar_cp_state_cache_adds_total",
help: "Total number of items added in checkpoint state cache",
}),
size: register.gauge({
size: register.gauge<"type">({
name: "lodestar_cp_state_cache_size",
help: "Checkpoint state cache size",
labelNames: ["type"],
}),
epochSize: register.gauge({
epochSize: register.gauge<"type">({
name: "lodestar_cp_state_epoch_size",
help: "Checkpoint state cache size",
labelNames: ["type"],
}),
reads: register.avgMinMax({
name: "lodestar_cp_state_epoch_reads",
Expand Down

0 comments on commit f0bb670

Please sign in to comment.