-
Notifications
You must be signed in to change notification settings - Fork 131
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
drainer: Add a metric to track the delay of the downstream #594
Conversation
@july2993 How do you test p8s metrics? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about use Histogram instead of Gauge
24df1c6
to
be17810
Compare
/run-all-tests |
be17810
to
2451962
Compare
/run-all-tests |
/run-unit-tests |
7ec96ef
to
1f88519
Compare
/run-all-tests |
1 similar comment
/run-all-tests |
/run-integration-tests |
/run-all-tests |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update https://github.com/pingcap/tidb-ansible/blob/master/scripts/binlog.json
and test it.
you can import the binlog.json, edit it and export it.
I'll update the Grafana dashboard later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
b1e94ca
to
a34ba81
Compare
What problem does this PR solve?
Fix Jira Issue
What is changed and how it works?
A new metric
checkpoint_delay = now() - most-recent-ts
is included.Check List
Tests
Manual test (confirmed that the new metric appeared in the /metrics endpoint):
Code changes
Side effects
Related changes