Merge pull request #8321 from prometheus/beorn7/promtool

promtool: Print block meta-data slightly more nicely
This commit is contained in:
Björn Rabenstein 2020-12-28 17:51:02 +01:00 committed by GitHub
commit 4154f6bc7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,7 +359,7 @@ func listBlocks(path string, humanReadable bool) error {
} }
func printBlocks(blocks []tsdb.BlockReader, writeHeader, humanReadable bool) { func printBlocks(blocks []tsdb.BlockReader, writeHeader, humanReadable bool) {
tw := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0) tw := tabwriter.NewWriter(os.Stdout, 13, 0, 2, ' ', 0)
defer tw.Flush() defer tw.Flush()
if writeHeader { if writeHeader {