Skip to content

Commit

Permalink
grafana(dm): fix grafana expr (#4405) (#4462)
Browse files Browse the repository at this point in the history
close #4404
  • Loading branch information
ti-chi-bot authored Jan 26, 2022
1 parent 33b2219 commit 6511ab0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dm/dm/dm-ansible/scripts/DM-Monitor-Professional.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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) group_right dm_syncer_binlog_file{instance=~\"$instance\", task=~\"$task\", node=\"syncer\"}",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 2,
"legendFormat": "{{task}} - {{instance}}",
"legendFormat": "{{instance}} - {{task}}",
"refId": "B"
}
],
Expand Down Expand Up @@ -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\"}",
"format": "time_series",
"hide": false,
"interval": "$interval",
Expand Down
6 changes: 3 additions & 3 deletions dm/dm/dm-ansible/scripts/DM-Monitor-Standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -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))",
"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",
Expand Down

0 comments on commit 6511ab0

Please sign in to comment.