Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: add line graph for replication lag metric #123208

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

kev-cao
Copy link
Contributor

@kev-cao kev-cao commented Apr 29, 2024

There currently does not exist observability for replication lag in PCR in the DB Console. As replication lag is essentially RPO for customers, this metric should be made available to them in the dashboard. This commit adds the metric as the difference between the wall time and the reported replicated time.

Fixes #120652

Release note (ui change): Added observability for PCR replication lag to the metrics dashboard

@kev-cao kev-cao requested review from a team as code owners April 29, 2024 14:21
@kev-cao kev-cao requested review from srosenberg and DarrylWong and removed request for a team April 29, 2024 14:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kev-cao kev-cao force-pushed the ui/replicationLagMetric branch 2 times, most recently from 33081c4 to fc3ef7b Compare April 29, 2024 14:23
@msbutler msbutler added the backport-24.1.x Flags PRs that need to be backported to 24.1. label Apr 29, 2024
@kev-cao
Copy link
Contributor Author

kev-cao commented Apr 29, 2024

TFTR!

bors r=xinhaoz

@craig
Copy link
Contributor

craig bot commented Apr 29, 2024

Build failed:

  • unit_tests

There currently does not exist observability for replication lag in PCR
in the DB Console. As replication lag is essentially RPO for customers,
this metric should be made available to them in the dashboard. This
commit adds the metric as the difference between the wall time and the
reported replicated time.

Fixes cockroachdb#120652

Release note (ui change): Added observability for PCR replication lag
to the metrics dashboard
@kev-cao
Copy link
Contributor Author

kev-cao commented Apr 30, 2024

bors r=xinhaoz

@craig craig bot merged commit 4e5656a into cockroachdb:master Apr 30, 2024
21 of 22 checks passed
Copy link

blathers-crl bot commented Apr 30, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from a9dfc64 to blathers/backport-release-24.1-123208: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 24.1.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-24.1.x Flags PRs that need to be backported to 24.1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DB Console: Add Replication Lag chart
4 participants