Repository navigation
initializer: fix the Operator DM master all-down alert - #1286
ti-chi-bot[bot] merged 1 commit into
Conversation
Use the component and tidb_cluster scrape labels for the generated Operator rule. Preserve the upstream TiFlow expression in the Ansible output.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fgksgf The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What changed
TiDB Operator assigns DM master scrape jobs names such as
ns1-target-dm-master. The existingjob="dm_master"selector returns no series for those targets, so the all-down alert cannot fire under the default Operator scrape configuration.max by (tidb_cluster) (up{component="dm-master"}) == 0and update the master snapshot.Related 8.5 backport: #1285.
Validation
go test cmd/monitoring.go cmd/dm_rules_test.gopassed. The test verifies the generated Operator rule matches the checked-in snapshot and the Ansible rule matches the upstream fixture.Summary by CodeRabbit