use scrape_use_seconds instead of scrape_use_ms

This commit is contained in:
Ulric Qin 2022-04-27 16:07:36 +08:00
parent 2c85250113
commit 16b31449d0
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ func (o *Oracle) gatherOnce(slist *list.SafeList, ins OrclInstance) {
}
defer func(begun time.Time) {
use := time.Since(begun).Milliseconds()
slist.PushFront(inputs.NewSample("scrape_use_ms", use, tags))
use := time.Since(begun).Seconds()
slist.PushFront(inputs.NewSample("scrape_use_seconds", use, tags))
}(time.Now())
db := o.dbconnpool[ins.Address]