Set the retention policy on the store

pull/5736/head
Edd Robinson 2016-02-17 14:06:04 +00:00
parent 2894234b1e
commit 08ca148724
1 changed files with 7 additions and 6 deletions

View File

@ -71,12 +71,13 @@ type Monitor struct {
// New returns a new instance of the monitor system.
func New(c Config) *Monitor {
return &Monitor{
done: make(chan struct{}),
diagRegistrations: make(map[string]diagnostics.Client),
storeEnabled: c.StoreEnabled,
storeDatabase: c.StoreDatabase,
storeInterval: time.Duration(c.StoreInterval),
Logger: log.New(os.Stderr, "[monitor] ", log.LstdFlags),
done: make(chan struct{}),
diagRegistrations: make(map[string]diagnostics.Client),
storeEnabled: c.StoreEnabled,
storeDatabase: c.StoreDatabase,
storeInterval: time.Duration(c.StoreInterval),
storeRetentionPolicy: MonitorRetentionPolicy,
Logger: log.New(os.Stderr, "[monitor] ", log.LstdFlags),
}
}