Repository navigation
feat(metrics): Export replica state, replication lag, and role gauges - #1932
Draft
colinbarry wants to merge 3 commits into
Draft
colinbarry wants to merge 3 commits into
colinbarry wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…olumn to SHOW REPLICATION ROLE
Draft
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
featureorbugfixlabel addedAlso documents the new
writeablecolumn ofSHOW REPLICATION ROLEonpages/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 namesmemgraph_instance_is_alive, but the gauge ismemgraph_instance_up.pages/database-management/monitoring.mdx: "Per-database labels" says global metrics carry no database label, but the replica gauges are global and carrydatabase(nouuid).