|
|
@ -63,11 +63,11 @@ func newWalMetrics(wal *SegmentWAL, r prometheus.Registerer) *walMetrics {
|
|
|
|
m := &walMetrics{}
|
|
|
|
m := &walMetrics{}
|
|
|
|
|
|
|
|
|
|
|
|
m.fsyncDuration = prometheus.NewSummary(prometheus.SummaryOpts{
|
|
|
|
m.fsyncDuration = prometheus.NewSummary(prometheus.SummaryOpts{
|
|
|
|
Name: "tsdb_wal_fsync_duration_seconds",
|
|
|
|
Name: "prometheus_tsdb_wal_fsync_duration_seconds",
|
|
|
|
Help: "Duration of WAL fsync.",
|
|
|
|
Help: "Duration of WAL fsync.",
|
|
|
|
})
|
|
|
|
})
|
|
|
|
m.corruptions = prometheus.NewCounter(prometheus.CounterOpts{
|
|
|
|
m.corruptions = prometheus.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "tsdb_wal_corruptions_total",
|
|
|
|
Name: "prometheus_tsdb_wal_corruptions_total",
|
|
|
|
Help: "Total number of WAL corruptions.",
|
|
|
|
Help: "Total number of WAL corruptions.",
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|