Skip to content

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
Contributor

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
Contributor

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.

3 participants