@@ -355,6 +355,7 @@ type tsdbMetrics struct {
355
355
tsdbChunksCreatedTotal * prometheus.Desc
356
356
tsdbChunksRemovedTotal * prometheus.Desc
357
357
tsdbMmapChunkCorruptionTotal * prometheus.Desc
358
+ tsdbChunkwriteQueueOperationsTotal * prometheus.Desc
358
359
359
360
tsdbExemplarsTotal * prometheus.Desc
360
361
tsdbExemplarsInStorage * prometheus.Desc
@@ -478,6 +479,10 @@ func newTSDBMetrics(r prometheus.Registerer) *tsdbMetrics {
478
479
"cortex_ingester_tsdb_mmap_chunk_corruptions_total" ,
479
480
"Total number of memory-mapped TSDB chunk corruptions." ,
480
481
nil , nil ),
482
+ tsdbChunkwriteQueueOperationsTotal : prometheus .NewDesc (
483
+ "cortex_ingester_tsdb_chunk_write_queue_operations_total" ,
484
+ "Number of currently tsdb chunk write queues." ,
485
+ []string {"user" , "operation" }, nil ),
481
486
tsdbLoadedBlocks : prometheus .NewDesc (
482
487
"cortex_ingester_tsdb_blocks_loaded" ,
483
488
"Number of currently loaded data blocks" ,
@@ -579,6 +584,7 @@ func (sm *tsdbMetrics) Describe(out chan<- *prometheus.Desc) {
579
584
out <- sm .tsdbChunksCreatedTotal
580
585
out <- sm .tsdbChunksRemovedTotal
581
586
out <- sm .tsdbMmapChunkCorruptionTotal
587
+ out <- sm .tsdbChunkwriteQueueOperationsTotal
582
588
out <- sm .tsdbLoadedBlocks
583
589
out <- sm .tsdbSymbolTableSize
584
590
out <- sm .tsdbReloads
@@ -628,6 +634,7 @@ func (sm *tsdbMetrics) Collect(out chan<- prometheus.Metric) {
628
634
data .SendSumOfCountersPerUser (out , sm .tsdbChunksCreatedTotal , "prometheus_tsdb_head_chunks_created_total" )
629
635
data .SendSumOfCountersPerUser (out , sm .tsdbChunksRemovedTotal , "prometheus_tsdb_head_chunks_removed_total" )
630
636
data .SendSumOfCounters (out , sm .tsdbMmapChunkCorruptionTotal , "prometheus_tsdb_mmap_chunk_corruptions_total" )
637
+ data .SendSumOfCountersPerUserWithLabels (out , sm .tsdbChunkwriteQueueOperationsTotal , "prometheus_tsdb_chunk_write_queue_operations_total" , "operation" )
631
638
data .SendSumOfGauges (out , sm .tsdbLoadedBlocks , "prometheus_tsdb_blocks_loaded" )
632
639
data .SendSumOfGaugesPerUser (out , sm .tsdbSymbolTableSize , "prometheus_tsdb_symbol_table_size_bytes" )
633
640
data .SendSumOfCounters (out , sm .tsdbReloads , "prometheus_tsdb_reloads_total" )
0 commit comments