From 185dbf5c9c3774f11b07087e4533ef888b3dc472 Mon Sep 17 00:00:00 2001 From: Rachel Elledge Date: Thu, 6 Nov 2025 12:22:51 -0600 Subject: [PATCH] DOC-5934 RS: Calculate percent memory usage for v2 metrics --- content/embeds/rs-prometheus-metrics-transition-plan.md | 2 +- content/embeds/rs-prometheus-metrics-v2.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/embeds/rs-prometheus-metrics-transition-plan.md b/content/embeds/rs-prometheus-metrics-transition-plan.md index bbff9c439f..3a05ea1a27 100644 --- a/content/embeds/rs-prometheus-metrics-transition-plan.md +++ b/content/embeds/rs-prometheus-metrics-transition-plan.md @@ -230,7 +230,7 @@ | redis_master_repl_offset | `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 | | redis_master_sync_in_progress | `redis_server_master_sync_in_progress` | The master shard is synchronizing (1 true; 0 false) | | redis_max_process_mem | `redis_server_max_process_mem` | Current memory limit configured by redis_mgr according to node free memory | -| redis_maxmemory | `redis_server_maxmemory` | Current memory limit configured by redis_mgr according to database memory limits | +| redis_maxmemory | `redis_server_maxmemory` | Current memory limit configured by redis_mgr according to database memory limits.

To calculate the percent memory usage:
`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))` | | redis_mem_aof_buffer | `redis_server_mem_aof_buffer` | Current size of AOF buffer | | redis_mem_clients_normal | `redis_server_mem_clients_normal` | Current memory used for input and output buffers of non-replica clients | | redis_mem_clients_slaves | `redis_server_mem_clients_slaves` | Current memory used for input and output buffers of replica clients | diff --git a/content/embeds/rs-prometheus-metrics-v2.md b/content/embeds/rs-prometheus-metrics-v2.md index ff05a885dc..e54721a59c 100644 --- a/content/embeds/rs-prometheus-metrics-v2.md +++ b/content/embeds/rs-prometheus-metrics-v2.md @@ -143,7 +143,7 @@ | 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 | | redis_server_master_sync_in_progress | The primary shard is synchronizing (1 true; 0 false) | | redis_server_max_process_mem | Current memory limit configured by redis_mgr according to node free memory | -| redis_server_maxmemory | Current memory limit configured by redis_mgr according to database memory limits | +| redis_server_maxmemory | Current memory limit configured by redis_mgr according to database memory limits.

To calculate the percent memory usage:
`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))` | | redis_server_mem_aof_buffer | Current size of AOF buffer | | redis_server_mem_clients_normal | Current memory used for input and output buffers of non-replica clients | | redis_server_mem_clients_slaves | Current memory used for input and output buffers of replica clients |