diff --git a/disperser/dataapi/metrics_handler.go b/disperser/dataapi/metrics_handler.go index b65c1263af..9ccbc6fbc5 100644 --- a/disperser/dataapi/metrics_handler.go +++ b/disperser/dataapi/metrics_handler.go @@ -5,6 +5,11 @@ import ( "time" ) +const ( + defaultThroughputRateSecs = 240 // 4m rate is used for < 7d window to match $__rate_interval + sevenDayThroughputRateSecs = 660 // 11m rate is used for >= 7d window to match $__rate_interval +) + // metricHandler handles operations to collect metrics about the Disperser. type metricsHandler struct { // For accessing metrics info diff --git a/disperser/dataapi/metrics_handlers.go b/disperser/dataapi/metrics_handlers.go index fcc8e55111..e317c5cfdb 100644 --- a/disperser/dataapi/metrics_handlers.go +++ b/disperser/dataapi/metrics_handlers.go @@ -9,12 +9,6 @@ import ( "github.com/Layr-Labs/eigenda/core" ) -const ( - maxWorkersGetOperatorState = 10 // The maximum number of workers to use when querying operator state. - defaultThroughputRateSecs = 240 // 4m rate is used for < 7d window to match $__rate_interval - sevenDayThroughputRateSecs = 660 // 11m rate is used for >= 7d window to match $__rate_interval -) - func (s *server) getMetric(ctx context.Context, startTime int64, endTime int64) (*Metric, error) { blockNumber, err := s.transactor.GetCurrentBlockNumber(ctx) if err != nil {