@@ -79,20 +79,13 @@ var (
79
79
// metric names.
80
80
Buckets : prometheus .ExponentialBuckets (1 , 4 , 6 ),
81
81
})
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" })
88
82
)
89
83
90
84
func init () {
91
85
dynamoRequestDuration .Register ()
92
86
prometheus .MustRegister (dynamoConsumedCapacity )
93
87
prometheus .MustRegister (dynamoFailures )
94
88
prometheus .MustRegister (dynamoQueryPagesCount )
95
- prometheus .MustRegister (dynamoQueryRetryCount )
96
89
prometheus .MustRegister (dynamoDroppedRequests )
97
90
}
98
91
@@ -212,9 +205,6 @@ func (a dynamoDBStorageClient) BatchWrite(ctx context.Context, input chunk.Write
212
205
unprocessed := dynamoDBWriteBatch {}
213
206
214
207
backoff := util .NewBackoff (ctx , a .cfg .backoffConfig )
215
- defer func () {
216
- dynamoQueryRetryCount .WithLabelValues ("BatchWrite" ).Observe (float64 (backoff .NumRetries ()))
217
- }()
218
208
219
209
for outstanding .Len ()+ unprocessed .Len () > 0 && backoff .Ongoing () {
220
210
requests := dynamoDBWriteBatch {}
@@ -354,9 +344,6 @@ func (a dynamoDBStorageClient) query(ctx context.Context, query chunk.IndexQuery
354
344
355
345
func (a dynamoDBStorageClient ) queryPage (ctx context.Context , input * dynamodb.QueryInput , page dynamoDBRequest , hashValue string , pageCount int ) (* dynamoDBReadResponse , error ) {
356
346
backoff := util .NewBackoff (ctx , a .cfg .backoffConfig )
357
- defer func () {
358
- dynamoQueryRetryCount .WithLabelValues ("queryPage" ).Observe (float64 (backoff .NumRetries ()))
359
- }()
360
347
361
348
var err error
362
349
for backoff .Ongoing () {
@@ -530,9 +517,6 @@ func (a dynamoDBStorageClient) getDynamoDBChunks(ctx context.Context, chunks []c
530
517
result := []chunk.Chunk {}
531
518
unprocessed := dynamoDBReadRequest {}
532
519
backoff := util .NewBackoff (ctx , a .cfg .backoffConfig )
533
- defer func () {
534
- dynamoQueryRetryCount .WithLabelValues ("getDynamoDBChunks" ).Observe (float64 (backoff .NumRetries ()))
535
- }()
536
520
537
521
for outstanding .Len ()+ unprocessed .Len () > 0 && backoff .Ongoing () {
538
522
requests := dynamoDBReadRequest {}
0 commit comments