Skip to content

Commit 757c028

Browse files
ptodevkgeckhart
andauthored
Apply suggestions from code review
Co-authored-by: Kyle Eckhart <[email protected]>
1 parent 729db29 commit 757c028

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/static/metrics/wal/wal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ func newStorageMetrics(r prometheus.Registerer) *storageMetrics {
9191
})
9292

9393
m.totalAppendedMetadata = prometheus.NewCounter(prometheus.CounterOpts{
94-
Name: "prometheus_remote_write_wal_metadata_appended_total",
95-
Help: "Total number of metadata entries appended to the WAL",
94+
Name: "prometheus_remote_write_wal_metadata_updates_total",
95+
Help: "Total number of metadata updates sent through the WAL",
9696
})
9797

9898
if r != nil {

internal/static/metrics/wal/wal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ prometheus_remote_write_wal_samples_appended_total 40
231231
"prometheus_remote_write_wal_metadata_appended_total",
232232
"prometheus_remote_write_wal_samples_appended_total",
233233
)
234-
require.NoError(t, err, "expected prometheus registry to be empty")
234+
require.NoError(t, err)
235235
}
236236

237237
func TestStorage_Rollback(t *testing.T) {

0 commit comments

Comments
 (0)