prometheus/tsdb/wlog
Giedrius Statkevičius 3b8fe00767 tsdb/wlog: unregister metrics on WL close
Thanos can create and destroy TSDBs dynamically, and once a TSDB
disappears its files are deleted. Calculating the size of the
WAL then fails with errors like:

```
msg: "Failed to calculate size of "wal" dir", "err": "lstat
/tsdbdir/wal: no such file or directory", "caller": "wlog.go:271"
```

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
2024-04-11 11:30:05 +03:00
..
checkpoint.go tsdb/wlog.Checkpoint: Handle also float histograms 2024-03-26 15:27:32 +01:00
checkpoint_test.go tsdb/wlog.Checkpoint: Handle also float histograms 2024-03-26 15:27:32 +01:00
live_reader.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
reader.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
reader_test.go tests: remove err from message when testify prints it already 2024-02-01 14:18:01 +00:00
watcher.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
watcher_test.go tsdb/wlog tests: remove unnecessary sleep check 2024-02-22 09:14:52 +00:00
wlog.go tsdb/wlog: unregister metrics on WL close 2024-04-11 11:30:05 +03:00
wlog_test.go Refactor tsdb tests to use testify. 2024-01-31 16:03:17 +00:00