-
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
Changes from 2 commits
baa476e
c34975c
2d19d10
685d047
28f5994
fa5c966
4e8500c
25d7456
1003b2f
6509f70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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\"}", | ||||||
"format": "time_series", | ||||||
"hide": false, | ||||||
"interval": "$interval", | ||||||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. preview link |
||||||
"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 commentThe reason will be displayed to describe this comment to others. Learn more. I think we should remain There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this metric:
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. maybe you can use
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 commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
"legendFormat": "{{{instance}}", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
could you provide an environment to let me verify the layout? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks! my bad , add preview link in about review comments now |
||||||
"refId": "B" | ||||||
} | ||||||
], | ||||||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. preview link |
||||||
"format": "time_series", | ||||||
"hide": false, | ||||||
"interval": "$interval", | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. preview link |
||
"hide": false, | ||
"interval": "", | ||
"legendFormat": "{{task}} - {{source_id}} - 90", | ||
"refId": "B" | ||
}, | ||
{ | ||
"exemplar": true, | ||
"expr": "histogram_quantile(0.95,\nsum(rate(dm_syncer_replication_lag_bucket{instance=~\"$instance\",task=~\"$task\"}[$interval])) by (le,instance,task))", | ||
"expr": "histogram_quantile(0.95,\nsum(rate(dm_syncer_replication_lag_bucket{source_id=~\"$source\",task=~\"$task\"}[$interval])) by (le,task,source_id))", | ||
"hide": false, | ||
"interval": "", | ||
"legendFormat": "{{task}} - {{source_id}} - 95", | ||
"refId": "C" | ||
}, | ||
{ | ||
"exemplar": true, | ||
"expr": "histogram_quantile(0.99,\nsum(rate(dm_syncer_replication_lag_bucket{instance=~\"$instance\",task=~\"$task\"}[$interval])) by (le,instance,task))", | ||
"expr": "histogram_quantile(0.99,\nsum(rate(dm_syncer_replication_lag_bucket{source_id=~\"$source\",task=~\"$task\"}[$interval])) by (le,task,source_id))", | ||
"hide": false, | ||
"interval": "", | ||
"legendFormat": "{{task}} - {{source_id}} - 99", | ||
|
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