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

Avoid a panic during Prometheus registering #3717

Merged

Conversation

nmengin
Copy link
Contributor

@nmengin nmengin commented Aug 2, 2018

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 generates panic.

Motivation

Do not generate panic and stop Træfik if it can not be registred to Prometheus (overkill?).

More

  • Added/updated

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nmengin nmengin force-pushed the feature/remove-panic-prometheus-register branch from ada1777 to a809b60 Compare August 3, 2018 07:41
Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nmengin nmengin force-pushed the feature/remove-panic-prometheus-register branch from 47593f8 to d611368 Compare August 3, 2018 08:17
@nmengin nmengin force-pushed the feature/remove-panic-prometheus-register branch 3 times, most recently from a486f4a to 858201c Compare August 3, 2018 09:53
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker force-pushed the feature/remove-panic-prometheus-register branch from 858201c to 338fb89 Compare August 3, 2018 10:20
@traefiker traefiker merged commit 4db937b into traefik:v1.7 Aug 3, 2018
@nmengin nmengin deleted the feature/remove-panic-prometheus-register branch August 3, 2018 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants