Skip to content

Commit

Permalink
Add missing objectives to SummaryVec in dispatcher (Layr-Labs#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc authored Jan 6, 2025
1 parent 2d4d65b commit 284f065
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions disperser/controller/dispatcher_metrics.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package controller

import (
"time"

"github.com/Layr-Labs/eigenda/common"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"time"
)

const dispatcherNamespace = "eigenda_dispatcher"
Expand Down Expand Up @@ -140,9 +141,10 @@ func newDispatcherMetrics(registry *prometheus.Registry) *dispatcherMetrics {

putDispersalRequestLatency := promauto.With(registry).NewSummaryVec(
prometheus.SummaryOpts{
Namespace: dispatcherNamespace,
Name: "put_dispersal_latency_ms",
Help: "The time required to put the dispersal request (part of HandleBatch()).",
Namespace: dispatcherNamespace,
Name: "put_dispersal_latency_ms",
Help: "The time required to put the dispersal request (part of HandleBatch()).",
Objectives: objectives,
},
[]string{},
)
Expand All @@ -168,9 +170,10 @@ func newDispatcherMetrics(registry *prometheus.Registry) *dispatcherMetrics {

putDispersalResponseLatency := promauto.With(registry).NewSummaryVec(
prometheus.SummaryOpts{
Namespace: dispatcherNamespace,
Name: "put_dispersal_response_latency_ms",
Help: "The time required to put the dispersal response (part of HandleBatch()).",
Namespace: dispatcherNamespace,
Name: "put_dispersal_response_latency_ms",
Help: "The time required to put the dispersal response (part of HandleBatch()).",
Objectives: objectives,
},
[]string{},
)
Expand Down

0 comments on commit 284f065

Please sign in to comment.