Skip to content

Commit 1f8ac47

Browse files
committed
fix spelling
1 parent 1769b72 commit 1f8ac47

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

server/metrics.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var (
2525
RelayLatency *prometheus.HistogramVec
2626
RelayStatusCode *prometheus.CounterVec
2727
RelayLastSlot *prometheus.GaugeVec
28+
MsIntoSlot *prometheus.HistogramVec
2829
)
2930

3031
func RegisterMetrics(registry *prometheus.Registry) {
@@ -92,6 +93,14 @@ func RegisterMetrics(registry *prometheus.Registry) {
9293
[]string{Relay},
9394
)
9495

96+
MsIntoSlot = prometheus.NewHistogramVec(
97+
prometheus.HistogramOpts{
98+
Namespace: Namespace,
99+
Name: "millisec_into_slot",
100+
Help: "Milliseconds into the slot when endpoint was called",
101+
},
102+
[]string{Endpoint},
103+
)
95104
registry.MustRegister(
96105
BeaconNodeStatus,
97106
BidValues,
@@ -100,6 +109,7 @@ func RegisterMetrics(registry *prometheus.Registry) {
100109
RelayLatency,
101110
RelayStatusCode,
102111
RelayLastSlot,
112+
MsIntoSlot,
103113
)
104114
})
105115
}

server/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func NewBoostService(opts BoostServiceOpts) (*BoostService, error) {
115115
genesisTime: opts.GenesisTime,
116116
bids: make(map[string]bidResp),
117117
slotUID: &slotUID{},
118+
metricsAddr: opts.MetricsAddr,
118119

119120
builderSigningDomain: builderSigningDomain,
120121
httpClientGetHeader: http.Client{

0 commit comments

Comments
 (0)