@@ -154,10 +154,10 @@ func TestFifoCacheExpire(t *testing.T) {
154
154
155
155
if c .expectedFinalItems != numberOfKeys {
156
156
err := testutil .GatherAndCompare (r , bytes .NewBufferString (fmt .Sprintf (`
157
- # HELP cortex_ingester_expanded_postings_cache_evicts Total number of evictions in the cache, excluding items that got evicted due to TTL.
158
- # TYPE cortex_ingester_expanded_postings_cache_evicts counter
159
- cortex_ingester_expanded_postings_cache_evicts {cache="test",reason="full"} %v
160
- ` , numberOfKeys - c .expectedFinalItems )), "cortex_ingester_expanded_postings_cache_evicts " )
157
+ # HELP cortex_ingester_expanded_postings_cache_evicts_total Total number of evictions in the cache, excluding items that got evicted due to TTL.
158
+ # TYPE cortex_ingester_expanded_postings_cache_evicts_total counter
159
+ cortex_ingester_expanded_postings_cache_evicts_total {cache="test",reason="full"} %v
160
+ ` , numberOfKeys - c .expectedFinalItems )), "cortex_ingester_expanded_postings_cache_evicts_total " )
161
161
require .NoError (t , err )
162
162
163
163
}
@@ -181,11 +181,11 @@ func TestFifoCacheExpire(t *testing.T) {
181
181
}
182
182
183
183
err := testutil .GatherAndCompare (r , bytes .NewBufferString (fmt .Sprintf (`
184
- # HELP cortex_ingester_expanded_postings_cache_miss Total number of miss requests to the cache.
185
- # TYPE cortex_ingester_expanded_postings_cache_miss counter
186
- cortex_ingester_expanded_postings_cache_miss {cache="test",reason="expired"} %v
187
- cortex_ingester_expanded_postings_cache_miss {cache="test",reason="miss"} %v
188
- ` , numberOfKeys , numberOfKeys )), "cortex_ingester_expanded_postings_cache_miss " )
184
+ # HELP cortex_ingester_expanded_postings_cache_miss_total Total number of miss requests to the cache.
185
+ # TYPE cortex_ingester_expanded_postings_cache_miss_total counter
186
+ cortex_ingester_expanded_postings_cache_miss_total {cache="test",reason="expired"} %v
187
+ cortex_ingester_expanded_postings_cache_miss_total {cache="test",reason="miss"} %v
188
+ ` , numberOfKeys , numberOfKeys )), "cortex_ingester_expanded_postings_cache_miss_total " )
189
189
require .NoError (t , err )
190
190
191
191
cache .timeNow = func () time.Time {
@@ -198,10 +198,10 @@ func TestFifoCacheExpire(t *testing.T) {
198
198
199
199
// Should expire all keys expired keys
200
200
err = testutil .GatherAndCompare (r , bytes .NewBufferString (fmt .Sprintf (`
201
- # HELP cortex_ingester_expanded_postings_cache_evicts Total number of evictions in the cache, excluding items that got evicted due to TTL.
202
- # TYPE cortex_ingester_expanded_postings_cache_evicts counter
203
- cortex_ingester_expanded_postings_cache_evicts {cache="test",reason="expired"} %v
204
- ` , numberOfKeys )), "cortex_ingester_expanded_postings_cache_evicts " )
201
+ # HELP cortex_ingester_expanded_postings_cache_evicts_total Total number of evictions in the cache, excluding items that got evicted due to TTL.
202
+ # TYPE cortex_ingester_expanded_postings_cache_evicts_total counter
203
+ cortex_ingester_expanded_postings_cache_evicts_total {cache="test",reason="expired"} %v
204
+ ` , numberOfKeys )), "cortex_ingester_expanded_postings_cache_evicts_total " )
205
205
require .NoError (t , err )
206
206
}
207
207
})
0 commit comments