Skip to content

Commit ba14bc4

Browse files
committed
chore: deprecate prometheus_remote_storage_{samples,exemplars,histograms}_in_total and prometheus_remote_storage_highest_timestamp_in_seconds
Signed-off-by: machine424 <[email protected]>
1 parent 184c7eb commit ba14bc4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

storage/remote/write.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,26 @@ import (
3434
"github.com/prometheus/prometheus/tsdb/wlog"
3535
)
3636

37+
// TODO: Remove along with timestampTracker logic once we can be sure no user
38+
// will encounter a gap that these metrics cover but other metrics don't.
3739
var (
3840
samplesIn = promauto.NewCounter(prometheus.CounterOpts{
3941
Namespace: namespace,
4042
Subsystem: subsystem,
4143
Name: "samples_in_total",
42-
Help: "Samples in to remote storage, compare to samples out for queue managers.",
44+
Help: "Samples in to remote storage, compare to samples out for queue managers. Deprecated, check prometheus_wal_watcher_records_read_total and prometheus_remote_storage_samples_dropped_total",
4345
})
4446
exemplarsIn = promauto.NewCounter(prometheus.CounterOpts{
4547
Namespace: namespace,
4648
Subsystem: subsystem,
4749
Name: "exemplars_in_total",
48-
Help: "Exemplars in to remote storage, compare to exemplars out for queue managers.",
50+
Help: "Exemplars in to remote storage, compare to exemplars out for queue managers. Deprecated, check prometheus_wal_watcher_records_read_total and prometheus_remote_storage_exemplars_dropped_total",
4951
})
5052
histogramsIn = promauto.NewCounter(prometheus.CounterOpts{
5153
Namespace: namespace,
5254
Subsystem: subsystem,
5355
Name: "histograms_in_total",
54-
Help: "HistogramSamples in to remote storage, compare to histograms out for queue managers.",
56+
Help: "HistogramSamples in to remote storage, compare to histograms out for queue managers. Deprecated, check prometheus_wal_watcher_records_read_total and prometheus_remote_storage_histograms_dropped_total",
5557
})
5658
)
5759

@@ -90,12 +92,14 @@ func NewWriteStorage(logger *slog.Logger, reg prometheus.Registerer, dir string,
9092
dir: dir,
9193
interner: newPool(),
9294
scraper: sm,
95+
// TODO: Remove along with timestampTracker logic once we can be sure no user
96+
// will encounter a gap that this metric covers but other metrics don't.
9397
highestTimestamp: &maxTimestamp{
9498
Gauge: prometheus.NewGauge(prometheus.GaugeOpts{
9599
Namespace: namespace,
96100
Subsystem: subsystem,
97101
Name: "highest_timestamp_in_seconds",
98-
Help: "Highest timestamp that has come into the remote storage via the Appender interface, in seconds since epoch. Initialized to 0 when no data has been received yet.",
102+
Help: "Highest timestamp that has come into the remote storage via the Appender interface, in seconds since epoch. Initialized to 0 when no data has been received yet. Deprecated, check prometheus_remote_storage_queue_highest_timestamp_seconds which is more accurate.",
99103
}),
100104
},
101105
enableTypeAndUnitLabels: enableTypeAndUnitLabels,

0 commit comments

Comments
 (0)