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

moving loki-canary project under loki repo #772

Merged
merged 19 commits into from
Jul 17, 2019
Merged

moving loki-canary project under loki repo #772

merged 19 commits into from
Jul 17, 2019

Conversation

slim-bean
Copy link
Collaborator

@slim-bean slim-bean commented Jul 17, 2019

lots of commits to preserve the history of the canary project

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
Copy link
Member

@rfratto rfratto left a 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,
Copy link
Member

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)

Copy link
Collaborator Author

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!

@slim-bean slim-bean merged commit 688056b into master Jul 17, 2019
@slim-bean slim-bean deleted the loki-canary branch July 17, 2019 20:52
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.

2 participants