Skip to content

Commit d33b032

Browse files
paulohtb6Feediver1
andauthored
Apply suggestions from code review
Co-authored-by: Joyce Fee <102751339+Feediver1@users.noreply.github.com>
1 parent 42ae53a commit d33b032

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

modules/manage/partials/monitor-health.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,27 @@ Use xref:reference:public-metrics-reference.adoc#redpanda_cpu_busy_seconds_total
5555

5656
==== Memory availability and pressure
5757

58-
To monitor memory, use xref:reference:public-metrics-reference.adoc#redpanda_memory_available_memory[`redpanda_memory_available_memory`] which includes both free memory and reclaimable memory from the batch cache. This provides a more accurate picture than using allocated memory alone, since allocated does not include reclaimable cache memory.
58+
To monitor memory, use xref:reference:public-metrics-reference.adoc#redpanda_memory_available_memory[`redpanda_memory_available_memory`], which includes both free memory and reclaimable memory from the batch cache. This provides a more accurate picture than using allocated memory alone, since allocated does not include reclaimable cache memory.
5959

6060
To monitor the percentage of memory available:
6161

6262
[,promql]
6363
----
64-
sum(redpanda_memory_available_memory) / (sum(redpanda_memory_free_memory) + sum(redpanda_memory_allocated_memory))
64+
min(redpanda_memory_available_memory / (redpanda_memory_free_memory + redpanda_memory_allocated_memory))
6565
----
6666

6767
To monitor memory pressure (percentage of memory being used), which may be more intuitive for alerting:
6868

6969
[,promql]
7070
----
71-
(1 - (sum(redpanda_memory_available_memory) / (sum(redpanda_memory_free_memory) + sum(redpanda_memory_allocated_memory))))*100
71+
min(redpanda_memory_available_memory / redpanda_memory_allocated_memory)
7272
----
7373

7474
You can also monitor the lowest available memory since process start to understand historical memory pressure:
7575

7676
[,promql]
7777
----
78-
redpanda_memory_available_memory_low_water_mark
78+
min(redpanda_memory_available_memory_low_water_mark / (redpanda_memory_free_memory + redpanda_memory_allocated_memory))
7979
----
8080

8181
==== Disk used

0 commit comments

Comments
 (0)