We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a02b54 commit 185ede8Copy full SHA for 185ede8
collector_base.go
@@ -60,7 +60,7 @@ func (c *CollectorBase) collectionStart() {
60
}
61
62
func (c *CollectorBase) collectionFinish() {
63
- duration := time.Until(*c.collectionStartTime)
+ duration := time.Since(*c.collectionStartTime)
64
c.LastScrapeDuration = &duration
65
66
c.collectionLastTime = c.collectionStartTime
0 commit comments