Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and test appender modifications #1394

Merged
merged 2 commits into from
Feb 15, 2016
Merged

Refactor and test appender modifications #1394

merged 2 commits into from
Feb 15, 2016

Conversation

fabxc
Copy link
Contributor

@fabxc fabxc commented Feb 15, 2016

No description provided.

@beorn7
Copy link
Member

beorn7 commented Feb 15, 2016

👍

fabxc added a commit that referenced this pull request Feb 15, 2016
Refactor and test appender modifications
@fabxc fabxc merged commit a0078ec into master Feb 15, 2016
@fabxc fabxc deleted the scraperef2 branch February 15, 2016 20:19
@@ -549,6 +563,38 @@ func (t *Target) scrape(appender storage.SampleAppender) error {
return err
}

func (t *Target) report(app storage.SampleAppender, start time.Time, duration time.Duration, err error) {
t.status.setLastScrape(start)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to remove the other calls to setLastScrape() then? The ones in

t.status.setLastScrape(time.Now())
and
t.status.setLastScrape(time.Now())
. But this then also changes the semantics of the "last scrape" slightly, since it'll no longer recorded when skipping during throttling. Maybe intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally right. Will fix that tomorrow.
And yea, recording scrapes that didn't happen actually skews the stats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants