From 691be260cf574f6ccb0c7d4c4d68c9a7a1a5276d Mon Sep 17 00:00:00 2001 From: Colin Barry Date: Thu, 19 Nov 2026 10:03:41 +0000 Subject: [PATCH 1/2] docs(monitoring): Add build info, memory limit, tracked memory, and license expiry metrics --- pages/database-management/monitoring.mdx | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pages/database-management/monitoring.mdx b/pages/database-management/monitoring.mdx index 24e93396b..047c92193 100644 --- a/pages/database-management/monitoring.mdx +++ b/pages/database-management/monitoring.mdx @@ -265,6 +265,32 @@ JSON endpoint and `SHOW METRICS INFO` use different names — see | memgraph\_disk\_usage\_bytes | Gauge | Disk space used by the database's [data directory](/fundamentals/data-durability) (in bytes). | | memgraph\_memory\_res\_bytes | Gauge | RAM used by the Memgraph process as reported by the OS (in bytes). Reflects the resident set size, not the value used for [license enforcement](/database-management/enabling-memgraph-enterprise#upgrading-or-downgrading-the-license). | | memgraph\_peak\_memory\_res\_bytes | Gauge | Peak RAM used by the Memgraph process (in bytes). | + | memgraph\_build\_info | Gauge | Always `1`; its labels describe the running build. | + | memgraph\_memory\_limit\_bytes | Gauge | Limit on the memory Memgraph tracks (in bytes), or `0` if unlimited. | + | memgraph\_memory\_tracked\_bytes | Gauge | Memory tracked against that limit (in bytes). | + | memgraph\_license\_expiry\_timestamp\_seconds | Gauge | Unix time when the license expires. | + +The build, memory limit, and license metrics are global, and `SHOW METRICS +INFO` doesn't include them; the queries named below show the same information. +`memgraph_build_info` has the labels `version`, `edition` (`enterprise` or +`community`), and `build_type`. The +`version` label shows the same value as [`SHOW +VERSION`](/database-management/server-stats#instance-version), and `build_type` +the same as [`SHOW BUILD INFO`](/database-management/server-stats#build-information). + +The memory limit is the lower of the +[`--memory-limit`](/database-management/configuration#other) flag and the +license's memory limit. An [`ai_platform` +license](/database-management/enabling-memgraph-enterprise#license-types) limits +graph and query memory instead, so it doesn't change this value. [`SHOW STORAGE +INFO`](/database-management/server-stats#storage-information) shows the tracked +memory as `memory_tracked`, and the two limits separately as `memory_limit` and +`license_memory_limit`. + +If the license never expires, its expiry time is `+Inf`. Without a valid +license, the expiry metric is absent. [`SHOW LICENSE +INFO`](/database-management/server-stats#license-information) shows the expiry +date as `valid_until`. #### Index metrics From 40f78217d5331ef3905e56ba0980fa77ea6b3874 Mon Sep 17 00:00:00 2001 From: Colin Barry Date: Thu, 19 Nov 2026 13:35:00 +0000 Subject: [PATCH 2/2] docs(monitoring): Drop the edition label from memgraph_build_info --- pages/database-management/monitoring.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/database-management/monitoring.mdx b/pages/database-management/monitoring.mdx index 047c92193..e10fed51b 100644 --- a/pages/database-management/monitoring.mdx +++ b/pages/database-management/monitoring.mdx @@ -266,15 +266,14 @@ JSON endpoint and `SHOW METRICS INFO` use different names — see | memgraph\_memory\_res\_bytes | Gauge | RAM used by the Memgraph process as reported by the OS (in bytes). Reflects the resident set size, not the value used for [license enforcement](/database-management/enabling-memgraph-enterprise#upgrading-or-downgrading-the-license). | | memgraph\_peak\_memory\_res\_bytes | Gauge | Peak RAM used by the Memgraph process (in bytes). | | memgraph\_build\_info | Gauge | Always `1`; its labels describe the running build. | - | memgraph\_memory\_limit\_bytes | Gauge | Limit on the memory Memgraph tracks (in bytes), or `0` if unlimited. | + | memgraph\_memory\_limit\_bytes | Gauge | Limit on the total memory Memgraph tracks (in bytes). | | memgraph\_memory\_tracked\_bytes | Gauge | Memory tracked against that limit (in bytes). | | memgraph\_license\_expiry\_timestamp\_seconds | Gauge | Unix time when the license expires. | The build, memory limit, and license metrics are global, and `SHOW METRICS INFO` doesn't include them; the queries named below show the same information. -`memgraph_build_info` has the labels `version`, `edition` (`enterprise` or -`community`), and `build_type`. The -`version` label shows the same value as [`SHOW +`memgraph_build_info` has the labels `version` and `build_type`. The `version` +label shows the same value as [`SHOW VERSION`](/database-management/server-stats#instance-version), and `build_type` the same as [`SHOW BUILD INFO`](/database-management/server-stats#build-information).