Skip to content

Commit

Permalink
Improve latency buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed Mar 4, 2025
1 parent 8e41fb4 commit c9bf997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/eth2wrap/eth2wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var (
Subsystem: "eth2",
Name: "latency_seconds",
Help: "Latency in seconds for eth2 beacon node requests",
Buckets: []float64{.1, .25, .5, .75, 1, 1.25, 1.5, 1.75, 2.0, 2.5, 3, 5},
}, []string{"endpoint"})

errorCount = promauto.NewCounterVec(prometheus.CounterOpts{
Expand Down
1 change: 1 addition & 0 deletions core/consensus/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var (
Subsystem: "consensus",
Name: "duration_seconds",
Help: "Duration of the consensus process by protocol, duty, and timer",
Buckets: []float64{.1, .25, .5, .75, 1, 1.25, 1.5, 1.75, 2.0, 2.25, 2.5, 2.75, 3, 5},
}, []string{"protocol", "duty", "timer"})

consensusTimeout = promauto.NewCounterVec(prometheus.CounterOpts{
Expand Down

0 comments on commit c9bf997

Please sign in to comment.