From 8a8eb12985f6ae5cb43f023a07c438cad5b1e08e Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 7 Mar 2017 11:51:30 +0100 Subject: [PATCH] storage/tsdb: don't use partitioned DB. --- storage/tsdb/tsdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/tsdb/tsdb.go b/storage/tsdb/tsdb.go index 519b63946c..8351252071 100644 --- a/storage/tsdb/tsdb.go +++ b/storage/tsdb/tsdb.go @@ -13,7 +13,7 @@ import ( // adapter implements a storage.Storage around TSDB. type adapter struct { - db *tsdb.PartitionedDB + db *tsdb.DB } // Options of the DB storage. @@ -38,7 +38,7 @@ type Options struct { // Open returns a new storage backed by a tsdb database. func Open(path string, r prometheus.Registerer, opts *Options) (storage.Storage, error) { - db, err := tsdb.OpenPartitioned(path, 1, nil, r, &tsdb.Options{ + db, err := tsdb.Open(path, nil, r, &tsdb.Options{ WALFlushInterval: 10 * time.Second, MinBlockDuration: uint64(opts.MinBlockDuration.Seconds() * 1000), MaxBlockDuration: uint64(opts.MaxBlockDuration.Seconds() * 1000),