Merge lp:~lucio.torre/txstatsd/sli-add-size into lp:txstatsd
Proposed by
Lucio Torre
Status: | Merged |
---|---|
Approved by: | Lucio Torre |
Approved revision: | 96 |
Merged at revision: | 96 |
Proposed branch: | lp:~lucio.torre/txstatsd/sli-add-size |
Merge into: | lp:txstatsd |
Diff against target: |
330 lines (+154/-29) 6 files modified
twisted/plugins/sli_plugin.py (+4/-4) txstatsd/metrics/extendedmetrics.py (+1/-0) txstatsd/metrics/metrics.py (+27/-9) txstatsd/metrics/slimetric.py (+30/-15) txstatsd/tests/metrics/test_sli.py (+73/-1) txstatsd/tests/test_metrics.py (+19/-0) |
To merge this branch: | bzr merge lp:~lucio.torre/txstatsd/sli-add-size |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Facundo Batista (community) | Approve | ||
Review via email: mp+110908@code.launchpad.net |
Commit message
add sli size
Description of the change
Add size to sli reporting:
from the client side now you can do:
metrics.sli(path, duration, size) to report multi items slis or just
metrics.sli(path, duration) for single items or
metric.
from the txstatsd side ive added the error counter and below and above now also take the optional slope value.
So,
path => label IF below 5 2
means:
label incoming metrics from path `path` with label `label` if duration < 5 + 2 * size
To post a comment you must log in.
Like it