Skip to content

Commit

Permalink
Average blob throughput over 9m window (Layr-Labs#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschork authored Jul 29, 2024
1 parent 3d9f547 commit b2c0bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/dataapi/prometheus_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (pc *prometheusClient) QueryDisperserBlobSizeBytesPerSecond(ctx context.Con
}

func (pc *prometheusClient) QueryDisperserAvgThroughputBlobSizeBytes(ctx context.Context, start time.Time, end time.Time, throughputRateSecs uint16) (*PrometheusResult, error) {
query := fmt.Sprintf("sum by (job) (rate(eigenda_batcher_blobs_total{state=\"confirmed\",data=\"size\",cluster=\"%s\"}[%ds]))", pc.cluster, throughputRateSecs)
query := fmt.Sprintf("avg_over_time( sum by (job) (rate(eigenda_batcher_blobs_total{state=\"confirmed\",data=\"size\",cluster=\"%s\"}[%ds])) [9m:])", pc.cluster, throughputRateSecs)
return pc.queryRange(ctx, query, start, end)
}

Expand Down

0 comments on commit b2c0bc3

Please sign in to comment.