-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Update prometheus/common and add support for --log.format #1658
Conversation
Signed-off-by: Paul Traylor <paul.traylor@linecorp.com>
Signed-off-by: Paul Traylor <paul.traylor@linecorp.com>
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. The order of imports in main.go isn't quite right. Although it isn't due to your PR it would be nice to fix it. The packages should be listed in 3 groups, each separated with a blank line:
import (
// all stdlib packages
// external packages
// github.com/prometheus/alertmanager packages
)
Ok, I'll take care of that tomorrow. :) |
Signed-off-by: Paul Traylor <paul.traylor@linecorp.com>
Assuming that Prometheus is considered an external package from alertmanager's perspective, I believe I have grouped the packages as requested. |
Agreed, the problem exists in the current code base and isn't specific to your change. This group should be split into 2: alertmanager/cmd/alertmanager/main.go Lines 33 to 53 in f1d33fb
|
I believe I have done that alertmanager/cmd/alertmanager/main.go Lines 17 to 55 in d1edbbc
though the line with |
Ah sorry, I missed the latest update! All good then 👍 |
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.
Thanks for the patch!
…#1658) Signed-off-by: Paul Traylor <paul.traylor@linecorp.com>
I am not sure if I did this correctly, but I'm willing to accept guidance on how to format things properly. :)
This should handle --log.format for #1657