Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pages/database-management/monitoring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,31 @@ 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 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` 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

Expand Down