mirror of https://github.com/prometheus/prometheus
storage/tsdb: don't use partitioned DB.
parent
9eb1d6c927
commit
8a8eb12985
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
// adapter implements a storage.Storage around TSDB.
|
// adapter implements a storage.Storage around TSDB.
|
||||||
type adapter struct {
|
type adapter struct {
|
||||||
db *tsdb.PartitionedDB
|
db *tsdb.DB
|
||||||
}
|
}
|
||||||
|
|
||||||
// Options of the DB storage.
|
// Options of the DB storage.
|
||||||
|
@ -38,7 +38,7 @@ type Options struct {
|
||||||
|
|
||||||
// Open returns a new storage backed by a tsdb database.
|
// Open returns a new storage backed by a tsdb database.
|
||||||
func Open(path string, r prometheus.Registerer, opts *Options) (storage.Storage, error) {
|
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,
|
WALFlushInterval: 10 * time.Second,
|
||||||
MinBlockDuration: uint64(opts.MinBlockDuration.Seconds() * 1000),
|
MinBlockDuration: uint64(opts.MinBlockDuration.Seconds() * 1000),
|
||||||
MaxBlockDuration: uint64(opts.MaxBlockDuration.Seconds() * 1000),
|
MaxBlockDuration: uint64(opts.MaxBlockDuration.Seconds() * 1000),
|
||||||
|
|
Loading…
Reference in New Issue