Skip to content

Commit dbb91c0

Browse files
authored
Merge pull request #1362 from cortexproject/remove-retry-histogram
Remove cortex_dynamo_query_retry_count histogram
2 parents eb6a61e + 435b228 commit dbb91c0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pkg/chunk/aws/dynamodb_storage_client.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,13 @@ var (
7979
// metric names.
8080
Buckets: prometheus.ExponentialBuckets(1, 4, 6),
8181
})
82-
dynamoQueryRetryCount = prometheus.NewHistogramVec(prometheus.HistogramOpts{
83-
Namespace: "cortex",
84-
Name: "dynamo_query_retry_count",
85-
Help: "Number of retries per DynamoDB operation.",
86-
Buckets: prometheus.LinearBuckets(0, 1, 21),
87-
}, []string{"operation"})
8882
)
8983

9084
func init() {
9185
dynamoRequestDuration.Register()
9286
prometheus.MustRegister(dynamoConsumedCapacity)
9387
prometheus.MustRegister(dynamoFailures)
9488
prometheus.MustRegister(dynamoQueryPagesCount)
95-
prometheus.MustRegister(dynamoQueryRetryCount)
9689
prometheus.MustRegister(dynamoDroppedRequests)
9790
}
9891

@@ -212,9 +205,6 @@ func (a dynamoDBStorageClient) BatchWrite(ctx context.Context, input chunk.Write
212205
unprocessed := dynamoDBWriteBatch{}
213206

214207
backoff := util.NewBackoff(ctx, a.cfg.backoffConfig)
215-
defer func() {
216-
dynamoQueryRetryCount.WithLabelValues("BatchWrite").Observe(float64(backoff.NumRetries()))
217-
}()
218208

219209
for outstanding.Len()+unprocessed.Len() > 0 && backoff.Ongoing() {
220210
requests := dynamoDBWriteBatch{}
@@ -354,9 +344,6 @@ func (a dynamoDBStorageClient) query(ctx context.Context, query chunk.IndexQuery
354344

355345
func (a dynamoDBStorageClient) queryPage(ctx context.Context, input *dynamodb.QueryInput, page dynamoDBRequest, hashValue string, pageCount int) (*dynamoDBReadResponse, error) {
356346
backoff := util.NewBackoff(ctx, a.cfg.backoffConfig)
357-
defer func() {
358-
dynamoQueryRetryCount.WithLabelValues("queryPage").Observe(float64(backoff.NumRetries()))
359-
}()
360347

361348
var err error
362349
for backoff.Ongoing() {
@@ -530,9 +517,6 @@ func (a dynamoDBStorageClient) getDynamoDBChunks(ctx context.Context, chunks []c
530517
result := []chunk.Chunk{}
531518
unprocessed := dynamoDBReadRequest{}
532519
backoff := util.NewBackoff(ctx, a.cfg.backoffConfig)
533-
defer func() {
534-
dynamoQueryRetryCount.WithLabelValues("getDynamoDBChunks").Observe(float64(backoff.NumRetries()))
535-
}()
536520

537521
for outstanding.Len()+unprocessed.Len() > 0 && backoff.Ongoing() {
538522
requests := dynamoDBReadRequest{}

0 commit comments

Comments
 (0)