Merge lp:~lucio.torre/txstatsd/add-sli into lp:txstatsd
Proposed by
Lucio Torre
Status: | Merged |
---|---|
Approved by: | Lucio Torre |
Approved revision: | 100 |
Merged at revision: | 95 |
Proposed branch: | lp:~lucio.torre/txstatsd/add-sli |
Merge into: | lp:txstatsd |
Diff against target: |
271 lines (+235/-0) 5 files modified
twisted/plugins/distinct_plugin.py (+1/-0) twisted/plugins/sli_plugin.py (+75/-0) txstatsd/metrics/slimetric.py (+61/-0) txstatsd/server/router.py (+1/-0) txstatsd/tests/metrics/test_sli.py (+97/-0) |
To merge this branch: | bzr merge lp:~lucio.torre/txstatsd/add-sli |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sidnei da Silva | Approve | ||
Review via email: mp+108388@code.launchpad.net |
Commit message
SLI metrics to measure service performance.
Description of the change
SLI metrics to measure service performance.
It will produce metrics with counts of values that match conditions, so you can then derive the service level based on that.
You should first use routing to redirect metrics that you are interested in to be of type sli and then add something like this to the configuration:
[plugin_sli]
rules =
test => red IF below 5
test => green IF between 0.1 3
other => red IF above 4
*t* => yellow IF above 3
To post a comment you must log in.
Not super happy about the count_* naming. What about:
count -> count.total
count_%s -> count.%s
The rules parsing also doesn't look great. Simply using split() like that is bound to give cryptic errors on badly formed rules. I'd replace it by a regex and some strict checking on each of the items with explicit errors raised if one is missing.