Skip to content

Commit deef1a3

Browse files
authored
DOC-5934 RS: Calculate percent memory usage for v2 metrics (#2363)
1 parent 02cd4a0 commit deef1a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/embeds/rs-prometheus-metrics-transition-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
| <span class="break-all">redis_master_repl_offset</span> | <span class="break-all">`redis_server_master_repl_offset`</span> | Number of bytes sent to replicas by the shard; calculate the throughput for a time period by comparing the value at different times |
231231
| <span class="break-all">redis_master_sync_in_progress</span> | <span class="break-all">`redis_server_master_sync_in_progress`</span> | The master shard is synchronizing (1 true; 0 false) |
232232
| <span class="break-all">redis_max_process_mem</span> | <span class="break-all">`redis_server_max_process_mem`</span> | Current memory limit configured by redis_mgr according to node free memory |
233-
| <span class="break-all">redis_maxmemory</span> | <span class="break-all">`redis_server_maxmemory`</span> | Current memory limit configured by redis_mgr according to database memory limits |
233+
| <span class="break-all">redis_maxmemory</span> | <span class="break-all">`redis_server_maxmemory`</span> | Current memory limit configured by redis_mgr according to database memory limits. <br /><br />To calculate the percent memory usage:<br /><span class="break-all">`sum by (cluster,db)(redis_server_used_memory{role="master"}) / (avg by(cluster,db)(db_memory_limit_bytes) / max by(cluster,db)(db_replication_factor))`</span> |
234234
| <span class="break-all">redis_mem_aof_buffer</span> | <span class="break-all">`redis_server_mem_aof_buffer`</span> | Current size of AOF buffer |
235235
| <span class="break-all">redis_mem_clients_normal</span> | <span class="break-all">`redis_server_mem_clients_normal`</span> | Current memory used for input and output buffers of non-replica clients |
236236
| <span class="break-all">redis_mem_clients_slaves</span> | <span class="break-all">`redis_server_mem_clients_slaves`</span> | Current memory used for input and output buffers of replica clients |

content/embeds/rs-prometheus-metrics-v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
| redis_server_master_repl_offset | Number of bytes sent to replicas by the shard; calculate the throughput for a time period by comparing the value at different times |
145145
| <span class="break-all">redis_server_master_sync_in_progress</span> | The primary shard is synchronizing (1 true; 0 false) |
146146
| redis_server_max_process_mem | Current memory limit configured by redis_mgr according to node free memory |
147-
| redis_server_maxmemory | Current memory limit configured by redis_mgr according to database memory limits |
147+
| redis_server_maxmemory | Current memory limit configured by redis_mgr according to database memory limits. <br /><br />To calculate the percent memory usage:<br /><span class="break-all">`sum by (cluster,db)(redis_server_used_memory{role="master"}) / (avg by(cluster,db)(db_memory_limit_bytes) / max by(cluster,db)(db_replication_factor))`</span> |
148148
| redis_server_mem_aof_buffer | Current size of AOF buffer |
149149
| redis_server_mem_clients_normal | Current memory used for input and output buffers of non-replica clients |
150150
| redis_server_mem_clients_slaves | Current memory used for input and output buffers of replica clients |

0 commit comments

Comments
 (0)