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

Feat/lag histogram #1203

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Feat/lag histogram #1203

wants to merge 4 commits into from

Conversation

adityathebe
Copy link
Member

resolves: #1194

return err
}

// For now, measure a single lag for the entire batch instead of per config item
Copy link
Member

Choose a reason for hiding this comment

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

It needs to be per per config item, at the tail end is what is going to hurt us -

@@ -89,7 +98,8 @@ func (t *SharedInformerManager) Register(ctx api.ScrapeContext, watchResource v1
if ctx.Properties().On(false, "scraper.log.items") {
ctx.Logger.V(3).Infof("updated: %s %s %s", u.GetUID(), u.GetKind(), u.GetName())
}
queue.Enqueue(u)

queue.Enqueue(NewObjectQueueItem(u))
Copy link
Member

Choose a reason for hiding this comment

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

We need update lag - this is actually the most critical one - I have added an is-healthy LastUpdated func https://github.com/flanksource/is-healthy/pull/144/files#diff-b7f1feaa038882966a9d30e0b96e476dccccc2608dd8a660f80767dbbc635b6fR183

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.

Add lag histograms
2 participants