mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-09 00:22:19 -04:00
Add DB.Dir method
This commit is contained in:
parent
7e4368e6c3
commit
d4cb579443
1 changed files with 5 additions and 0 deletions
5
db.go
5
db.go
|
|
@ -238,6 +238,11 @@ func Open(dir string, l log.Logger, r prometheus.Registerer, opts *Options) (db
|
|||
return db, nil
|
||||
}
|
||||
|
||||
// Dir returns the directory of the database.
|
||||
func (db *DB) Dir() string {
|
||||
return db.dir
|
||||
}
|
||||
|
||||
func (db *DB) run() {
|
||||
defer close(db.donec)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue