Skip to content

Commit 670c4b2

Browse files
authored
chore(monitor-snapshot/master): update files from upstreams (#407)
1 parent 9e29377 commit 670c4b2

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

9 Bytes
Binary file not shown.

monitor-snapshot/master/operator/dashboards/ticdc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@
26652665
"pluginVersion": "7.5.11",
26662666
"targets": [
26672667
{
2668-
"expr": "rate(ticdc_owner_ownership_counter{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[30s])",
2668+
"expr": "rate(ticdc_owner_ownership_counter{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[240s])",
26692669
"format": "time_series",
26702670
"intervalFactor": 2,
26712671
"legendFormat": "{{instance}}",
@@ -2962,7 +2962,7 @@
29622962
"steppedLine": true,
29632963
"targets": [
29642964
{
2965-
"expr": "sum(rate(ticdc_owner_ownership_counter{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[30s])) by (instance) > BOOL 0.5",
2965+
"expr": "sum(rate(ticdc_owner_ownership_counter{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"}[240s])) by (instance) > BOOL 0.0625",
29662966
"format": "time_series",
29672967
"interval": "30s",
29682968
"intervalFactor": 1,

monitor-snapshot/master/operator/rules/ticdc.rules.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ groups:
22
- name: alert.rules
33
rules:
44
- alert: cdc_multiple_owners
5-
expr: sum(rate(ticdc_owner_ownership_counter[30s])) >= 2
5+
expr: sum(rate(ticdc_owner_ownership_counter[240s])) >= 0.125
66
for: 1m
77
labels:
88
env: ENV_LABELS_ENV
9-
expr: sum(rate(ticdc_owner_ownership_counter[30s])) >= 2
9+
expr: sum(rate(ticdc_owner_ownership_counter[240s])) >= 0.125
1010
level: warning
1111
annotations:
1212
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:
1313
{{ $value }}'
1414
summary: cdc cluster has multiple owners
1515
value: '{{ $value }}'
1616
- alert: cdc_no_owner
17-
expr: sum(rate(ticdc_owner_ownership_counter[30s])) < 0.5
17+
expr: sum(rate(ticdc_owner_ownership_counter[240s])) < 0.0625
1818
for: 10m
1919
labels:
2020
env: ENV_LABELS_ENV
21-
expr: sum(rate(ticdc_owner_ownership_counter[30s])) < 0.5
21+
expr: sum(rate(ticdc_owner_ownership_counter[240s])) < 0.0625
2222
level: warning
2323
annotations:
2424
description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:

0 commit comments

Comments
 (0)