Skip to content

feat(metrics): Export replica state, replication lag, and role gauges - #1932

Draft
colinbarry wants to merge 3 commits into
release/3.15from
docs/replication-health-gauges
Draft

colinbarry wants to merge 3 commits into
release/3.15from
docs/replication-health-gauges

Conversation

@colinbarry

@colinbarry colinbarry commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a replication metrics section to the monitoring page with the replica state, replication lag, replication role, writeable-main, and registered-replica gauges, their labels, and the queries that show the same information.

Product PR

memgraph/memgraph#5024

Checklist

  • For a product change: milestone set to the release and feature or bugfix label added
  • For a product change: this PR is linked from the product PR's documentation checklist

Also documents the new writeable column of SHOW REPLICATION ROLE on pages/database-management/clustering/replication/replication-commands-reference.mdx. Its example output takes its values from the product PR's e2e test (tests/e2e/replication/show.py), not from a run.

Left out of the docs: that the gauges keep their previous values when a scrape finds the replication state or a replica's state busy; a link from the replication pages.

No examples to run: the change adds table rows and prose only.

Noticed, not fixed

Read by the release check, which fixes these in one PR per release. Fix an item if it's wrong; keep the heading and one line per item, starting with the page. Delete the section if it's empty.

  • pages/database-management/monitoring.mdx: the "New metrics" migration section names memgraph_instance_is_alive, but the gauge is memgraph_instance_up.
  • pages/database-management/monitoring.mdx: "Per-database labels" says global metrics carry no database label, but the replica gauges are global and carry database (no uuid).

@colinbarry colinbarry added this to the 3.15 milestone Nov 19, 2026
@colinbarry colinbarry added the feature Documentation related to a new product feature of feature update label Nov 19, 2026
@colinbarry colinbarry self-assigned this Nov 19, 2026
@colinbarry colinbarry added the feature Documentation related to a new product feature of feature update label Nov 19, 2026
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
documentation Ready Ready Preview Nov 22, 2026 9:50am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — e5538f25 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Documentation related to a new product feature of feature update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant