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

Monotonic rate counters (#23) #30

Merged
merged 1 commit into from
Apr 19, 2012
Merged

Monotonic rate counters (#23) #30

merged 1 commit into from
Apr 19, 2012

Conversation

FabriceOllivier
Copy link
Contributor

Make sure we are not reporting metric on a wrapped counter. This works only for increasing counters (not decreasing). An 'UnknownValue' exception is raised if the counter is decreasing, allowing the value not to be picked up at all by the agent.

Updated tests to reflect the change.

@ghost ghost assigned alq666 Apr 18, 2012
@alq666
Copy link
Member

alq666 commented Apr 19, 2012

Do you know what happens when UnknownValue bubbles up? We obviously don't want the agent to crash when one counter wraps.

@FabriceOllivier
Copy link
Contributor Author

Agent calls either get_samples_with_timestamps or get_samples which are catching all exceptions and just not dumping the problematic value (mongo is using get_sample but is catching UnknownValue explicitly)

alq666 added a commit that referenced this pull request Apr 19, 2012
@alq666 alq666 merged commit 4725dbd into master Apr 19, 2012
@alq666
Copy link
Member

alq666 commented Apr 19, 2012

Initially defined in #23.

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