@@ -351,26 +351,22 @@ type headMetrics struct {
351351 chunksCreated prometheus.Counter
352352 chunksRemoved prometheus.Counter
353353 gcDuration prometheus.Summary
354- successfulSamplesAppended * prometheus.CounterVec
355- // samplesAppended *prometheus.CounterVec
356- // outOfOrderSamplesAppended *prometheus.CounterVec
357- // outOfBoundSamples *prometheus.CounterVec
358- // outOfOrderSamples *prometheus.CounterVec
359- // tooOldSamples *prometheus.CounterVec
360- walTruncateDuration prometheus.Summary
361- walCorruptionsTotal prometheus.Counter
362- dataTotalReplayDuration prometheus.Gauge
363- headTruncateFail prometheus.Counter
364- headTruncateTotal prometheus.Counter
365- checkpointDeleteFail prometheus.Counter
366- checkpointDeleteTotal prometheus.Counter
367- checkpointCreationFail prometheus.Counter
368- checkpointCreationTotal prometheus.Counter
369- mmapChunkCorruptionTotal prometheus.Counter
370- snapshotReplayErrorTotal prometheus.Counter // Will be either 0 or 1.
371- oooHistogram prometheus.Histogram
372- mmapChunksTotal prometheus.Counter
373- sampleAppendFailures * prometheus.CounterVec
354+ samplesAppended * prometheus.CounterVec
355+ outOfOrderSamplesAppended * prometheus.CounterVec
356+ walTruncateDuration prometheus.Summary
357+ walCorruptionsTotal prometheus.Counter
358+ dataTotalReplayDuration prometheus.Gauge
359+ headTruncateFail prometheus.Counter
360+ headTruncateTotal prometheus.Counter
361+ checkpointDeleteFail prometheus.Counter
362+ checkpointDeleteTotal prometheus.Counter
363+ checkpointCreationFail prometheus.Counter
364+ checkpointCreationTotal prometheus.Counter
365+ mmapChunkCorruptionTotal prometheus.Counter
366+ snapshotReplayErrorTotal prometheus.Counter // Will be either 0 or 1.
367+ oooHistogram prometheus.Histogram
368+ mmapChunksTotal prometheus.Counter
369+ sampleAppendFailures * prometheus.CounterVec
374370}
375371
376372const (
@@ -379,8 +375,6 @@ const (
379375 outOfBounds = "out_of_bounds"
380376 outOfOrder = "out_of_order"
381377 tooOld = "too_old"
382- successfulAppends = "successful_appends"
383- oooAppends = "ooo_appends"
384378)
385379
386380func newHeadMetrics (h * Head , r prometheus.Registerer ) * headMetrics {
@@ -435,34 +429,18 @@ func newHeadMetrics(h *Head, r prometheus.Registerer) *headMetrics {
435429 Name : "prometheus_tsdb_data_replay_duration_seconds" ,
436430 Help : "Time taken to replay the data on disk." ,
437431 }),
438- successfulSamplesAppended : prometheus .NewCounterVec (prometheus.CounterOpts {
439- Name : "prometheus_tsdb_head_successful_samples_appended_total" ,
440- Help : "Total number of successful appended samples including out of order samples." ,
441- }, []string {"reason" , "type" }),
442432 sampleAppendFailures : prometheus .NewCounterVec (prometheus.CounterOpts {
443- Name : "prometheus_tsdb_head_samples_append_failures_total " ,
433+ Name : "prometheus_tsdb_head_append_failures_total " ,
444434 Help : "Total number of sample append failures with different reasons." ,
445435 }, []string {"reason" , "type" }),
446- // samplesAppended: prometheus.NewCounterVec(prometheus.CounterOpts{
447- // Name: "prometheus_tsdb_head_samples_appended_total",
448- // Help: "Total number of appended samples.",
449- // }, []string{"type"}),
450- // outOfOrderSamplesAppended: prometheus.NewCounterVec(prometheus.CounterOpts{
451- // Name: "prometheus_tsdb_head_out_of_order_samples_appended_total",
452- // Help: "Total number of appended out of order samples.",
453- // }, []string{"type"}),
454- // outOfBoundSamples: prometheus.NewCounterVec(prometheus.CounterOpts{
455- // Name: "prometheus_tsdb_out_of_bound_samples_total",
456- // Help: "Total number of out of bound samples ingestion failed attempts with out of order support disabled.",
457- // }, []string{"type"}),
458- // outOfOrderSamples: prometheus.NewCounterVec(prometheus.CounterOpts{
459- // Name: "prometheus_tsdb_out_of_order_samples_total",
460- // Help: "Total number of out of order samples ingestion failed attempts due to out of order being disabled.",
461- // }, []string{"type"}),
462- // tooOldSamples: prometheus.NewCounterVec(prometheus.CounterOpts{
463- // Name: "prometheus_tsdb_too_old_samples_total",
464- // Help: "Total number of out of order samples ingestion failed attempts with out of support enabled, but sample outside of time window.",
465- // }, []string{"type"}),
436+ samplesAppended : prometheus .NewCounterVec (prometheus.CounterOpts {
437+ Name : "prometheus_tsdb_head_samples_appended_total" ,
438+ Help : "Total number of appended samples." ,
439+ }, []string {"type" }),
440+ outOfOrderSamplesAppended : prometheus .NewCounterVec (prometheus.CounterOpts {
441+ Name : "prometheus_tsdb_head_out_of_order_samples_appended_total" ,
442+ Help : "Total number of appended out of order samples." ,
443+ }, []string {"type" }),
466444 headTruncateFail : prometheus .NewCounter (prometheus.CounterOpts {
467445 Name : "prometheus_tsdb_head_truncations_failed_total" ,
468446 Help : "Total number of head truncations that failed." ,
@@ -531,13 +509,9 @@ func newHeadMetrics(h *Head, r prometheus.Registerer) *headMetrics {
531509 m .walTruncateDuration ,
532510 m .walCorruptionsTotal ,
533511 m .dataTotalReplayDuration ,
534- // m.samplesAppended,
535- m .successfulSamplesAppended ,
536- // m.outOfOrderSamplesAppended,
512+ m .samplesAppended ,
513+ m .outOfOrderSamplesAppended ,
537514 m .sampleAppendFailures ,
538- // m.outOfBoundSamples,
539- // m.outOfOrderSamples,
540- // m.tooOldSamples,
541515 m .headTruncateFail ,
542516 m .headTruncateTotal ,
543517 m .checkpointDeleteFail ,
0 commit comments