use scrape_use_seconds instead of scrape_use_ms
This commit is contained in:
parent
2c85250113
commit
16b31449d0
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue