-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Addition of a /suspend
endpoint to Loki Canary
#1891
Conversation
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
/suspend
endpoint to Loki Canary
thoughts on adding k8s folks can kill the pod but more people are using this now standalone and a |
Good idea. Looking into it! |
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
|
w := writer.NewWriter(os.Stdout, sentChan, *interval, *size) | ||
r := reader.NewReader(os.Stderr, receivedChan, *tls, *addr, *user, *pass, *lName, *lVal) | ||
c := comparator.NewComparator(os.Stderr, *wait, *pruneInterval, *buckets, sentChan, receivedChan, r, true) | ||
c := &canary{} |
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.
you could make start a function of c too no ? like stop ?
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.
I was considering it but decided against it b/c it would have to take like 10 parameters. This seemed less gross.
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
2 nits nothing major.
Signed-off-by: Joe Elliott <number101010@gmail.com>
What this PR does / why we need it:
Adds a suspend endpoint to accomodate a way to permanently stop a canary without killing the process. Canary now honors SIGINT as expected.
Which issue(s) this PR fixes:
Fixes #1700
Special notes for your reviewer:
Checklist