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

Fixes for crashes with conflicting metric values #72

Merged
merged 4 commits into from
Jul 18, 2017

Conversation

jacksontj
Copy link
Contributor

This PR contains the fixes for #63

I've left them as separate commits for easier review, if preferred I can squash these as well.

cc: @grobie

If someone is emitting negative counters we shouldn't even register the
metric for them
This patch simply moves the error message from a log.Fatalf() to a
log.Errorf() to continue on.

Fixes prometheus#63
Move addition of metric to "Elements" until after a successful registry
with prometheus, otherwise we'll continue to increment a metric which
isn't registered
@grobie
Copy link
Member

grobie commented Jul 18, 2017

Thanks!

@grobie grobie merged commit 8b40f78 into prometheus:master Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants