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 Bug 1172511 - examples of CountAnythingRules for the processor #2835

Merged
merged 1 commit into from
Sep 2, 2015
Merged

Fixes Bug 1172511 - examples of CountAnythingRules for the processor #2835

merged 1 commit into from
Sep 2, 2015

Conversation

twobraids
Copy link
Contributor

this is a demo of what can be done with the statsd classes and processor rules...

this change creates a base counter rule class and then uses it to define two processor rules that detect conditions during processing and then increment a statsd counter.

CountStackWalkerTimeoutKills will track how many times the stackwalker is killed for taking too long.
CountStackWalkerFailures will track how many times the stackwalker crashes or returns a bad error code.

@twobraids twobraids changed the title DEMO - NO BUG - examples of CountAnythingRules for the processor Fixes Bug 1172511 - examples of CountAnythingRules for the processor Jun 8, 2015
@lonnen
Copy link
Contributor

lonnen commented Jul 15, 2015

@AdrianGaudebert could you have a look at these when you return?

@rhelmer
Copy link
Contributor

rhelmer commented Jul 17, 2015

r+ lgtm, these won't be activated until we enable them via config

@adngdb
Copy link
Contributor

adngdb commented Jul 20, 2015

Don't we have unit tests for rules? If not, should we have some? It looks all simple and good, but unit tests are still a nice thing to have imho.

@adngdb adngdb assigned adngdb and unassigned rhelmer Aug 19, 2015
lonnen added a commit that referenced this pull request Sep 2, 2015
Fixes Bug 1172511 - examples of CountAnythingRules for the processor
@lonnen lonnen merged commit cce2f82 into mozilla-services:master Sep 2, 2015
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.

4 participants