-
Notifications
You must be signed in to change notification settings - Fork 287
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
grafana(dm): fix grafana expr #4405
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
"format": "time_series", | ||
"hide": false, | ||
"interval": "$interval", | ||
"intervalFactor": 2, | ||
"legendFormat": "{{task}} - {{instance}}", |
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.
I think we should remain {{task}} - {{instance}}
as each task will produce a different value
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.
this metric: dm_relay_binlog_file
don't have label task
so this legend looks like this - 127.0.0.1:8621
dm_relay_binlog_file{instance="127.0.0.1:8262", job="dm-worker-1", node="master"} | 1
-- | --
dm_relay_binlog_file{instance="127.0.0.1:8262", job="dm-worker-1", node="relay"}
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.
ping @glorv ptal
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.
maybe you can use group_right
dm_relay_binlog_file{instance="172.16.5.177:8101", node="relay"} - ON(instance) group_right dm_syncer_binlog_file{instance="172.16.5.177:8101", node="syncer"}
please find a good solution from https://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches
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.
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #4405 +/- ##
================================================
- Coverage 55.8077% 55.7611% -0.0466%
================================================
Files 495 495
Lines 61246 61333 +87
================================================
+ Hits 34180 34200 +20
- Misses 23614 23714 +100
+ Partials 3452 3419 -33 |
could you please take another look for this pr ? thanks 🧡🧡🧡 /cc @lance6716 @glorv |
"format": "time_series", | ||
"hide": false, | ||
"interval": "$interval", | ||
"intervalFactor": 2, | ||
"legendFormat": "{{task}} - {{instance}}", | ||
"legendFormat": "{{{instance}}", |
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.
"legendFormat": "{{{instance}}", | |
"legendFormat": "{{instance}}", |
could you provide an environment to let me verify the layout?
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.
thanks! my bad , add preview link in about review comments now
@@ -3059,7 +3059,7 @@ | |||
"steppedLine": false, | |||
"targets": [ | |||
{ | |||
"expr": "dm_syncer_binlog_file{source_id=~\"$source\", task=~\"$task\", node=\"master\"} - ON( task,source_id) dm_syncer_binlog_file{source_id=~\"$source\", task=~\"$task\", node=\"syncer\"}", | |||
"expr": "dm_syncer_binlog_file{source_id=~\"$source\", task=~\"$task\", node=\"master\"} - ON(task,source_id) dm_syncer_binlog_file{source_id=~\"$source\", task=~\"$task\", node=\"syncer\"}", |
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.
preview link
@@ -3716,12 +3716,12 @@ | |||
"steppedLine": false, | |||
"targets": [ | |||
{ | |||
"expr": "dm_relay_binlog_file{instance=~\"$instance\", node=\"relay\"} - ON(instance, task) dm_syncer_binlog_file{instance=~\"$instance\", task=~\"$task\", node=\"syncer\"}", | |||
"expr": "dm_relay_binlog_file{instance=~\"$instance\", node=\"relay\"} - ON(instance) dm_syncer_binlog_file{instance=~\"$instance\", task=~\"$task\", node=\"syncer\"}", |
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.
preview link
@@ -5088,7 +5088,7 @@ | |||
"steppedLine": false, | |||
"targets": [ | |||
{ | |||
"expr": "dm_relay_binlog_file{instance=~\"$instance\", node=\"master\"} - ON(instance, job) dm_relay_binlog_file{instance=~\"$instance\", node=\"relay\"}", | |||
"expr": "dm_relay_binlog_file{instance=~\"$instance\", node=\"master\"} - ON(instance) dm_relay_binlog_file{instance=~\"$instance\", node=\"relay\"}", |
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.
preview link
@@ -450,23 +450,23 @@ | |||
"targets": [ | |||
{ | |||
"exemplar": true, | |||
"expr": "histogram_quantile(0.90, sum(rate(dm_syncer_replication_lag_bucket{instance=~\"$instance\",task=~\"$task\"}[$interval])) by (le,instance,task))", | |||
"expr": "histogram_quantile(0.90, sum(rate(dm_syncer_replication_lag_bucket{source_id=~\"$source\",task=~\"$task\"}[$interval])) by (le,task,source_id))", |
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.
preview link
/merge |
This pull request has been accepted and is ready to merge. Commit hash: fa5c966
|
/run-all-tests |
/run-integration-tests /tidb=pr/30558 |
@Ehco1996: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-integration-tests /tidb=pr/30558 /run-dm-integration-tests |
In response to a cherrypick label: new pull request created: #4462. |
In response to a cherrypick label: new pull request created: #4463. |
What problem does this PR solve?
Issue Number: close #4404
What is changed and how it works?
use right expr
fix standard's lag lable not show
fix binlog file gap between master and syncer
fix binlog file gap between relay and syncer
fix binlog file gap between master and relay
Check List
Tests
Code changes
Side effects
Related changes
Release note