Skip to content
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

ticdc: add ticdc_changefeed_failed alert rule #16380

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions ticdc/ticdc-alert-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For critical alerts, you need to pay close attention to abnormal monitoring metr

- Alert rule:

(time() - ticdc_owner_checkpoint_ts / 1000) > 600
`(time() - ticdc_owner_checkpoint_ts / 1000) > 600`

- Description:

Expand All @@ -30,7 +30,7 @@ For critical alerts, you need to pay close attention to abnormal monitoring metr

- Alert rule:

(time() - ticdc_owner_resolved_ts / 1000) > 300
`(time() - ticdc_owner_resolved_ts / 1000) > 300`

- Description:

Expand All @@ -40,6 +40,20 @@ For critical alerts, you need to pay close attention to abnormal monitoring metr

See [TiCDC Handle Replication Interruption](/ticdc/troubleshoot-ticdc.md#how-do-i-handle-replication-interruptions).

### `ticdc_changefeed_failed`

- Alert rule:

`(max_over_time(ticdc_owner_status[1m]) == 2) > 0`

- Description:

A replication task encounters an unrecoverable error and enters the failed state.

- Solution:

This alert is similar to replication interruption. See [TiCDC Handle Replication Interruption](/ticdc/troubleshoot-ticdc.md#how-do-i-handle-replication-interruptions).
Copy link
Collaborator

@hfxsd hfxsd Mar 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search and replace all?

Suggested change
This alert is similar to replication interruption. See [TiCDC Handle Replication Interruption](/ticdc/troubleshoot-ticdc.md#how-do-i-handle-replication-interruptions).
This alert is similar to replication interruption. See [TiCDC Handles Replication Interruption](/ticdc/troubleshoot-ticdc.md#how-do-i-handle-replication-interruptions).


### `ticdc_processor_exit_with_error_count`

- Alert rule:
Expand Down Expand Up @@ -132,7 +146,7 @@ Warning alerts are a reminder for an issue or error.

- Alert rule:

`changes(tikv_cdc_min_resolved_ts[1m]) < 1 and ON (instance) tikv_cdc_region_resolve_status{status="resolved"} > 0`
`changes(tikv_cdc_min_resolved_ts[1m]) < 1 and ON (instance) tikv_cdc_region_resolve_status{status="resolved"} > 0 and ON (instance) tikv_cdc_captured_region_total > 0`

- Description:

Expand Down
Loading