-
Notifications
You must be signed in to change notification settings - Fork 233
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
PR #272 continued #283
PR #272 continued #283
Conversation
Fixes #270 Signed-off-by: mhartenbower <matt.hartenbower@gmail.com>
Signed-off-by: mhartenbower <matt.hartenbower@gmail.com>
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
Following the lead of prometheus/prometheus, we prefer to log-and-exit instead of an unstructured panic. cf. https://github.com/prometheus/prometheus/pull/3061/files#diff-4a3ccbb3ebdcd530af96f0105fe833c2R182 Signed-off-by: Matthias Rampke <mr@soundcloud.com>
note for the changelog: the logger change is only mildly breaking – the valid values for |
👍 |
level.Error(logger).Log("msg", "error dumping FSM", "error", err) | ||
// Failure to dump the FSM is an error (the user asked for it and it | ||
// didn't happen) but not fatal (the exporter is fully functional | ||
// afterwards). |
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.
As an aside, should this always exit anyway? This sounds more like a tool than what a daemon should do in passing.
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.
hmm it could, yeah, although then I'd prefer to start a mapper CLI which could also do config validation.
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.
cf. #263
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
Picking up #272 to get it over the finish line:
cc @mhartenbower