From 16b31449d0994d18571dbb99b3f75cb455bba186 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 27 Apr 2022 16:07:36 +0800 Subject: [PATCH] use scrape_use_seconds instead of scrape_use_ms --- inputs/oracle/oracle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputs/oracle/oracle.go b/inputs/oracle/oracle.go index 573ed5b..0b01c6c 100644 --- a/inputs/oracle/oracle.go +++ b/inputs/oracle/oracle.go @@ -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]