Skip to content

Commit b12eef1

Browse files
committed
Updates per #14742
1 parent cad2b53 commit b12eef1

File tree

2 files changed

+24
-29
lines changed

2 files changed

+24
-29
lines changed

content/commands/hotkeys-get.md

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,30 @@ This command returns comprehensive information about the hotkeys tracking sessio
6161
```
6262
HOTKEYS GET
6363
1) "tracking-active"
64-
2) (integer) 0
64+
2) (integer) 1
6565
3) "sample-ratio"
6666
4) (integer) 1
6767
5) "selected-slots"
6868
6) (empty array)
69-
7) "all-commands-all-slots-ms"
70-
8) (integer) 0
69+
7) "all-commands-all-slots-us"
70+
8) (integer) 220
7171
9) "net-bytes-all-commands-all-slots"
72-
10) (integer) 129
72+
10) (integer) 200
7373
11) "collection-start-time-unix-ms"
74-
12) (integer) 1768927872057
74+
12) (integer) 1769420604522
7575
13) "collection-duration-ms"
76-
14) (integer) 1
76+
14) (integer) 6408
7777
15) "total-cpu-time-user-ms"
78-
16) (integer) 0
78+
16) (integer) 3
7979
17) "total-cpu-time-sys-ms"
80-
18) (integer) 0
81-
19) "total-net-bytes"
82-
20) (integer) 129
83-
21) "by-cpu-time"
84-
22) 1) "key1"
85-
2) (integer) 13
86-
3) "key2"
87-
4) (integer) 2
88-
23) "by-net-bytes"
89-
24) 1) "key1"
90-
2) (integer) 89
91-
3) "key2"
92-
4) (integer) 40
80+
18) (integer) 11
81+
19) "by-cpu-time-us"
82+
20) 1) "x"
83+
2) (integer) 104
84+
3) "y"
85+
4) (integer) 98
86+
5) "z"
87+
6) (integer) 18
9388
```
9489

9590
## Redis Enterprise and Redis Cloud compatibility
@@ -111,9 +106,9 @@ One of the following:
111106
- `tracking-active` (integer): 1 if tracking is active, 0 if stopped
112107
- `sample-ratio` (integer): The sampling ratio used during tracking
113108
- `selected-slots` (array): Array of slot numbers being tracked (empty if all slots)
114-
- `sampled-command-selected-slots-ms` (integer): Time in milliseconds for sampled commands on selected slots (conditional)
115-
- `all-commands-selected-slots-ms` (integer): Time in milliseconds for all commands on selected slots (conditional)
116-
- `all-commands-all-slots-ms` (integer): Time in milliseconds for all commands on all slots
109+
- `sampled-command-selected-slots-us` (integer): Time in microseconds for sampled commands on selected slots (conditional)
110+
- `all-commands-selected-slots-us` (integer): Time in microseconds for all commands on selected slots (conditional)
111+
- `all-commands-all-slots-us` (integer): Time in microseconds for all commands on all slots
117112
- `net-bytes-sampled-commands-selected-slots` (integer): Network bytes for sampled commands on selected slots (conditional)
118113
- `net-bytes-all-commands-selected-slots` (integer): Network bytes for all commands on selected slots (conditional)
119114
- `net-bytes-all-commands-all-slots` (integer): Network bytes for all commands on all slots
@@ -122,7 +117,7 @@ One of the following:
122117
- `used-cpu-sys-ms` (integer): System CPU time used in milliseconds
123118
- `used-cpu-user-ms` (integer): User CPU time used in milliseconds
124119
- `total-net-bytes` (integer): Total network bytes processed
125-
- `by-cpu-time` (array): Array of key-time pairs sorted by CPU time (if CPU tracking enabled)
120+
- `by-cpu-time-us` (array): Array of key-time pairs sorted by CPU time in microseconds (if CPU tracking enabled)
126121
- `by-net-bytes` (array): Array of key-bytes pairs sorted by network bytes (if NET tracking enabled)
127122

128123
**[Null reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}})** when no tracking has been started or data has been reset.
@@ -136,9 +131,9 @@ One of the following:
136131
- `tracking-active` (integer): 1 if tracking is active, 0 if stopped
137132
- `sample-ratio` (integer): The sampling ratio used during tracking
138133
- `selected-slots` (array): Array of slot numbers being tracked (empty if all slots)
139-
- `sampled-command-selected-slots-ms` (integer): Time in milliseconds for sampled commands on selected slots (conditional)
140-
- `all-commands-selected-slots-ms` (integer): Time in milliseconds for all commands on selected slots (conditional)
141-
- `all-commands-all-slots-ms` (integer): Time in milliseconds for all commands on all slots
134+
- `sampled-command-selected-slots-us` (integer): Time in microseconds for sampled commands on selected slots (conditional)
135+
- `all-commands-selected-slots-us` (integer): Time in microseconds for all commands on selected slots (conditional)
136+
- `all-commands-all-slots-us` (integer): Time in microseconds for all commands on all slots
142137
- `net-bytes-sampled-commands-selected-slots` (integer): Network bytes for sampled commands on selected slots (conditional)
143138
- `net-bytes-all-commands-selected-slots` (integer): Network bytes for all commands on selected slots (conditional)
144139
- `net-bytes-all-commands-all-slots` (integer): Network bytes for all commands on all slots
@@ -147,7 +142,7 @@ One of the following:
147142
- `used-cpu-sys-ms` (integer): System CPU time used in milliseconds
148143
- `used-cpu-user-ms` (integer): User CPU time used in milliseconds
149144
- `total-net-bytes` (integer): Total network bytes processed
150-
- `by-cpu-time` (array): Array of key-time pairs sorted by CPU time (if CPU tracking enabled)
145+
- `by-cpu-time-us` (array): Array of key-time pairs sorted by CPU time in microseconds (if CPU tracking enabled)
151146
- `by-net-bytes` (array): Array of key-bytes pairs sorted by network bytes (if NET tracking enabled)
152147

153148
**[Null reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}})** when no tracking has been started or data has been reset.

content/commands/hotkeys-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Sampling ratio for probabilistic tracking. Each key is sampled with probability
120120

121121
<details open><summary><code>SLOTS</code></summary>
122122

123-
Specifies which hash slots to track in a cluster environment. Takes a count followed by that many slot numbers. Only keys that hash to the specified slots will be tracked. Useful for tracking hotkeys on specific shards in a Redis cluster.
123+
Specifies which hash slots to track in a cluster environment; ignored if not in a cluster. Takes a count followed by that many slot numbers. Only keys that hash to the specified slots will be tracked. Useful for tracking hotkeys on specific shards in a Redis cluster.
124124

125125
</details>
126126

0 commit comments

Comments
 (0)