Skip to content

Commit 768eb58

Browse files
authored
Add _total suffix to cached posting compression time metric (#5431)
* add _total suffix to cortex_bucket_store_cached_postings_compression_time_seconds metric Signed-off-by: Ben Ye <[email protected]> * update changelog Signed-off-by: Ben Ye <[email protected]> * update test Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent ff3f3e3 commit 768eb58

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* [CHANGE] Ruler: Added user label to `cortex_ruler_write_requests_total`, `cortex_ruler_write_requests_failed_total`, `cortex_ruler_queries_total`, and `cortex_ruler_queries_failed_total` metrics. #5312
1212
* [CHANGE] Alertmanager: Validating new fields on the PagerDuty AM config. #5290
1313
* [CHANGE] Ingester: Creating label `native-histogram-sample` on the `cortex_discarded_samples_total` to keep track of discarded native histogram samples. #5289
14+
* [CHANGE] Store Gateway: Rename `cortex_bucket_store_cached_postings_compression_time_seconds` to `cortex_bucket_store_cached_postings_compression_time_seconds_total`. #5431
1415
* [FEATURE] Store Gateway: Add `max_downloaded_bytes_per_request` to limit max bytes to download per store gateway request.
1516
* [FEATURE] Added 2 flags `-alertmanager.alertmanager-client.grpc-max-send-msg-size` and ` -alertmanager.alertmanager-client.grpc-max-recv-msg-size` to configure alert manager grpc client message size limits. #5338
1617
* [FEATURE] Query Frontend: Add `cortex_rejected_queries_total` metric for throttled queries. #5356

pkg/storegateway/bucket_store_metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func NewBucketStoreMetrics() *BucketStoreMetrics {
134134
"Number of postings compression and decompression errors.",
135135
[]string{"op"}, nil),
136136
cachedPostingsCompressionTimeSeconds: prometheus.NewDesc(
137-
"cortex_bucket_store_cached_postings_compression_time_seconds",
137+
"cortex_bucket_store_cached_postings_compression_time_seconds_total",
138138
"Time spent compressing and decompressing postings when storing to / reading from postings cache.",
139139
[]string{"op"}, nil),
140140
cachedPostingsOriginalSizeBytes: prometheus.NewDesc(

pkg/storegateway/bucket_store_metrics_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ func TestBucketStoreMetrics(t *testing.T) {
384384
cortex_bucket_store_cached_postings_compression_errors_total{op="encode"} 1170988
385385
cortex_bucket_store_cached_postings_compression_errors_total{op="decode"} 1193507
386386
387-
# HELP cortex_bucket_store_cached_postings_compression_time_seconds Time spent compressing and decompressing postings when storing to / reading from postings cache.
388-
# TYPE cortex_bucket_store_cached_postings_compression_time_seconds counter
389-
cortex_bucket_store_cached_postings_compression_time_seconds{op="encode"} 1216026
390-
cortex_bucket_store_cached_postings_compression_time_seconds{op="decode"} 1238545
387+
# HELP cortex_bucket_store_cached_postings_compression_time_seconds_total Time spent compressing and decompressing postings when storing to / reading from postings cache.
388+
# TYPE cortex_bucket_store_cached_postings_compression_time_seconds_total counter
389+
cortex_bucket_store_cached_postings_compression_time_seconds_total{op="encode"} 1216026
390+
cortex_bucket_store_cached_postings_compression_time_seconds_total{op="decode"} 1238545
391391
392392
# HELP cortex_bucket_store_cached_postings_original_size_bytes_total Original size of postings stored into cache.
393393
# TYPE cortex_bucket_store_cached_postings_original_size_bytes_total counter

0 commit comments

Comments
 (0)