Skip to content

Commit 1a9a05a

Browse files
committed
Update charts after metrics renamed
- README updated with correct metrics names - Charts for latency/throughput updated to use new metrics names. Some charts yet need to be updated
1 parent 502310b commit 1a9a05a

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,22 @@ Example query for visualising throughput per second of get on 10s window
148148

149149
### Lettuce Test App Custom Metrics
150150
**Common Tags:**
151-
- runId: Unique identifier for the test run.
152-
153-
| Metric Name | Type | Description | Tags |
154-
|----------------------------|---------|-------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
155-
| `lettuce.connect.success` | Timer | Measures the duration and count of successful Redis connections. | N/A |
156-
| `lettuce.connect.failure` | Timer | Measures the duration and count of failed Redis connection attempts. | N/A |
157-
| `lettuce.reconnect.attempts`| Counter | Counts the number of Redis reconnect attempts. | `epid`: Endpoint ID, `local`: Local address, `remote`: Remote address |
158-
| `lettuce.reconnect.failures`| Counter | Counts the number of failed Redis reconnect attempts. | `epid`: Endpoint ID, `local`: Local address, `remote`: Remote address |
159-
| `redis.command.latency` | Timer | Measures the execution time of Redis commands from API invocation until command completion. | `command`: Redis command (e.g., `GET`, `SET`) |
160-
| `redis.command.errors` | Counter | Counts the number of failed Redis command API calls that completed with an exception. | `command`: Redis command (e.g., `GET`, `SET`) |
151+
- run_id: Unique identifier for the test run.
152+
153+
| Metric Name | Type | Description | Tags |
154+
|----------------------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
155+
| `lettuce.connect.success` | Timer | Measures the duration and count of successful initial Redis connections. | N/A |
156+
| `lettuce.connect.failure` | Timer | Measures the duration and count of failed initial Redis connection attempts. | N/A |
157+
| `lettuce.reconnect.attempts`| Counter | Counts the number of Redis reconnect attempts per connection (localAddr, remoteAddr, epid). Corresponds to ReconnectAttemptEvent | `epid`: Endpoint ID, `local`: Local address, `remote`: Remote address |
158+
| `lettuce.reconnect.failures`| Counter | Counts the number of failed Redis reconnect attempts.Corresponds to ReconnectFailedEvent | `epid`: Endpoint ID, `local`: Local address, `remote`: Remote address |
159+
| `lettuce.reconnect.total.attempts `| Counter | Counts the number of Redis reconnect attempts(ReconnectAttemptEvent across all connections) | N/A |
160+
| `lettuce.reconnect.total.failures `| Counter | Counts the number of failed Redis reconnect attempts(ReconnectFailedEvent across all connections) | N/A |
161+
| `redis.connections.total`| Counter | Counts the number of Redis reconnect attempts per connection (INITIATED and completed with ERROR) . (as reported by lettuce core library via ReconnectAttemptEvent- INITIATED, ReconnectFailedEvent-ERROR | 'status':(INITIATED, ERROR), `epid`: Endpoint ID, `local`: Local address, `remote`: Remote address |
162+
| `redis.connection.drops.total`| Counter | Counts the number of disconnects per connection (localAddr, remoteAddr, epid). (as reported by lettuce core library via DisconnectedEvents) | `epid`: Endpoint ID, `local`: Local address, `remote`: Remote address |
163+
| `redis.command.errors` | Counter | Counts the number of failed Redis command API calls that completed with an exception. (per command type) | `command`: Redis command (e.g., `GET`, `SET`) |
164+
| `redis.operation.duration.total` | TIMER | Measures the execution time of Redis commands from API invocation until command completion. Percentiles (0.5, 0.95, 0.99) | Agregated across connections/command types |
165+
| `redis.operation.duration` | TIMER | Measures the execution time of Redis commands from API invocation until command completion per command. | `command`: Redis command (e.g., `GET`, `SET`), status: (SUCCESS, ERROR, INITIATED) |
166+
| `redis.operations.total` | Counter | Counts the number of total Redis command API calls completed successfully or with an error. | `command`: Redis command (e.g., `GET`, `SET`), status: (SUCCESS, ERROR) |
161167

162168
### Lettuce App Custom Metrics
163169
This project uses a modified version of lettuce-core with additional metrics from the `feature/maintenance-events` branch.
@@ -184,8 +190,8 @@ Following additional metrics are available in the modified lettuce version:
184190
185191
| Metric Name | Type | Description | Tags |
186192
|----------------------------|---------|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
187-
| `lettuce.reconnection.attempts.count` | Timer | Measures the duration connection was in inactive state during reconnection. | epid |
188-
| `lettuce.reconnection.attempts.count` | Counter | Number of reconnection attempts. | epid. <br> Note: this metric is similar to `lettuce.reconnect.attempts` but is reported directly by Lettuce client itself and is counted per `epid` (e.g not taged with `local` and `remote` tags). |
193+
| `redis.reconnection.duration` | Timer | Measures the duration connection was in inactive state during reconnection. | epid |
194+
| `redis.reconnection.attempts` | Counter | Number of reconnection attempts. | epid. <br> Note: this metric is similar to `lettuce.reconnect.attempts` but is reported directly by Lettuce client itself and is counted per `epid` (e.g not taged with `local` and `remote` tags). |
189195

190196
Example :
191197
```

0 commit comments

Comments
 (0)