-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Avoid a panic during Prometheus registering #3717
Merged
traefiker
merged 4 commits into
traefik:v1.7
from
nmengin:feature/remove-panic-prometheus-register
Aug 3, 2018
Merged
Avoid a panic during Prometheus registering #3717
traefiker
merged 4 commits into
traefik:v1.7
from
nmengin:feature/remove-panic-prometheus-register
Aug 3, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmengin
added
status/2-needs-review
kind/bug/fix
a bug fix
area/middleware/metrics
and removed
status/0-needs-triage
labels
Aug 2, 2018
mmatur
approved these changes
Aug 3, 2018
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
nmengin
force-pushed
the
feature/remove-panic-prometheus-register
branch
from
August 3, 2018 07:41
ada1777
to
a809b60
Compare
juliens
approved these changes
Aug 3, 2018
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
nmengin
force-pushed
the
feature/remove-panic-prometheus-register
branch
from
August 3, 2018 08:17
47593f8
to
d611368
Compare
nmengin
force-pushed
the
feature/remove-panic-prometheus-register
branch
3 times, most recently
from
August 3, 2018 09:53
a486f4a
to
858201c
Compare
ldez
approved these changes
Aug 3, 2018
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
traefiker
force-pushed
the
feature/remove-panic-prometheus-register
branch
from
August 3, 2018 10:20
858201c
to
338fb89
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR replaces the function which registers Træfik to Prometheus (which can generate
panic
) by another one which never generatespanic
.Motivation
Do not generate
panic
and stop Træfik if it can not be registred to Prometheus (overkill?).More