| 453 | } |
| 454 | |
| 455 | func newTSDBMetrics(r prometheus.Registerer) *tsdbMetrics { |
| 456 | m := &tsdbMetrics{ |
| 457 | regs: util.NewUserRegistries(), |
| 458 | |
| 459 | dirSyncs: prometheus.NewDesc( |
| 460 | "cortex_ingester_shipper_dir_syncs_total", |
| 461 | "Total number of TSDB dir syncs", |
| 462 | nil, nil), |
| 463 | dirSyncFailures: prometheus.NewDesc( |
| 464 | "cortex_ingester_shipper_dir_sync_failures_total", |
| 465 | "Total number of failed TSDB dir syncs", |
| 466 | nil, nil), |
| 467 | uploads: prometheus.NewDesc( |
| 468 | "cortex_ingester_shipper_uploads_total", |
| 469 | "Total number of uploaded TSDB blocks", |
| 470 | nil, nil), |
| 471 | uploadFailures: prometheus.NewDesc( |
| 472 | "cortex_ingester_shipper_upload_failures_total", |
| 473 | "Total number of TSDB block upload failures", |
| 474 | nil, nil), |
| 475 | corruptedBlocks: prometheus.NewDesc( |
| 476 | "cortex_ingester_shipper_corrupted_blocks_total", |
| 477 | "Total number of TSDB blocks corrupted", |
| 478 | nil, nil), |
| 479 | tsdbCompactionsTotal: prometheus.NewDesc( |
| 480 | "cortex_ingester_tsdb_compactions_total", |
| 481 | "Total number of TSDB compactions that were executed.", |
| 482 | nil, nil), |
| 483 | tsdbCompactionDuration: prometheus.NewDesc( |
| 484 | "cortex_ingester_tsdb_compaction_duration_seconds", |
| 485 | "Duration of TSDB compaction runs.", |
| 486 | nil, nil), |
| 487 | tsdbFsyncDuration: prometheus.NewDesc( |
| 488 | "cortex_ingester_tsdb_wal_fsync_duration_seconds", |
| 489 | "Duration of TSDB WAL fsync.", |
| 490 | nil, nil), |
| 491 | tsdbPageFlushes: prometheus.NewDesc( |
| 492 | "cortex_ingester_tsdb_wal_page_flushes_total", |
| 493 | "Total number of TSDB WAL page flushes.", |
| 494 | nil, nil), |
| 495 | tsdbPageCompletions: prometheus.NewDesc( |
| 496 | "cortex_ingester_tsdb_wal_completed_pages_total", |
| 497 | "Total number of TSDB WAL completed pages.", |
| 498 | nil, nil), |
| 499 | tsdbWALTruncateFail: prometheus.NewDesc( |
| 500 | "cortex_ingester_tsdb_wal_truncations_failed_total", |
| 501 | "Total number of TSDB WAL truncations that failed.", |
| 502 | nil, nil), |
| 503 | tsdbWALTruncateTotal: prometheus.NewDesc( |
| 504 | "cortex_ingester_tsdb_wal_truncations_total", |
| 505 | "Total number of TSDB WAL truncations attempted.", |
| 506 | nil, nil), |
| 507 | tsdbWALTruncateDuration: prometheus.NewDesc( |
| 508 | "cortex_ingester_tsdb_wal_truncate_duration_seconds", |
| 509 | "Duration of TSDB WAL truncation.", |
| 510 | nil, nil), |
| 511 | tsdbWALCorruptionsTotal: prometheus.NewDesc( |
| 512 | "cortex_ingester_tsdb_wal_corruptions_total", |