A collection of timers and counters for various performance metrics. Timer metrics are represented as floating point seconds.
| 28 | |
| 29 | |
| 30 | class Metrics(object): |
| 31 | """ |
| 32 | A collection of timers and counters for various performance metrics. |
| 33 | |
| 34 | Timer metrics are represented as floating point seconds. |
| 35 | """ |
| 36 | |
| 37 | request_timer = None |
| 38 | """ |
| 39 | A :class:`greplin.scales.PmfStat` timer for requests. This is a dict-like |
| 40 | object with the following keys: |
| 41 | |
| 42 | * count - number of requests that have been timed |
| 43 | * min - min latency |
| 44 | * max - max latency |
| 45 | * mean - mean latency |
| 46 | * stddev - standard deviation for latencies |
| 47 | * median - median latency |
| 48 | * 75percentile - 75th percentile latencies |
| 49 | * 95percentile - 95th percentile latencies |
| 50 | * 98percentile - 98th percentile latencies |
| 51 | * 99percentile - 99th percentile latencies |
| 52 | * 999percentile - 99.9th percentile latencies |
| 53 | """ |
| 54 | |
| 55 | connection_errors = None |
| 56 | """ |
| 57 | A :class:`greplin.scales.IntStat` count of the number of times that a |
| 58 | request to a Cassandra node has failed due to a connection problem. |
| 59 | """ |
| 60 | |
| 61 | write_timeouts = None |
| 62 | """ |
| 63 | A :class:`greplin.scales.IntStat` count of write requests that resulted |
| 64 | in a timeout. |
| 65 | """ |
| 66 | |
| 67 | read_timeouts = None |
| 68 | """ |
| 69 | A :class:`greplin.scales.IntStat` count of read requests that resulted |
| 70 | in a timeout. |
| 71 | """ |
| 72 | |
| 73 | unavailables = None |
| 74 | """ |
| 75 | A :class:`greplin.scales.IntStat` count of write or read requests that |
| 76 | failed due to an insufficient number of replicas being alive to meet |
| 77 | the requested :class:`.ConsistencyLevel`. |
| 78 | """ |
| 79 | |
| 80 | other_errors = None |
| 81 | """ |
| 82 | A :class:`greplin.scales.IntStat` count of all other request failures, |
| 83 | including failures caused by invalid requests, bootstrapping nodes, |
| 84 | overloaded nodes, etc. |
| 85 | """ |
| 86 | |
| 87 | retries = None |