[#373] fstree: Add metrics
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
a8526d45e9
commit
3ae3c8dfdb
4 changed files with 126 additions and 12 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
// Open implements common.Storage.
|
||||
func (t *FSTree) Open(ro bool) error {
|
||||
t.readOnly = ro
|
||||
t.metrics.SetMode(ro)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -16,4 +17,7 @@ func (t *FSTree) Init() error {
|
|||
}
|
||||
|
||||
// Close implements common.Storage.
|
||||
func (*FSTree) Close() error { return nil }
|
||||
func (t *FSTree) Close() error {
|
||||
t.metrics.Close()
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue