-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
moving loki-canary project under loki repo #772
Conversation
mostly working, need to extract out the config needs a proper ksonnet or helm deployment or both needs a makefile
improving tests config via flags added ksonnet config
…he pod name from a file and the downardApi added a makefile
…a direct query to loki to look for logs not received over the websocket before reporting them as missing
…n against entries which were not expected so that we can report them as duplicates.
…second it would cause some way too aggressive querying when scaled out over all our clusters and loki had a hiccup
canary will suspend all operations on SIGINT but not exit, allowing you to shutdown the canary without it being restarted by docker/kubernetes SIGTERM will shutdown everything and end the process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +/- my nitpicking
done chan struct{} | ||
} | ||
|
||
func NewComparator(writer io.Writer, maxWait time.Duration, pruneInterval time.Duration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely a nitpick but comparator.NewComparator
, reader.NewReader
and writer.NewWriter
would annoy some go linters and would have comparator.New
, reader.New
and writer.New
be suggested instead. I'm ok with leaving it as it is, but we do have other packages that just use New
(loki, distributor, ingester, stage, promtail, etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good feedback, i'll follow up with a separate PR for this!
lots of commits to preserve the history of the canary project