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

[feature] Support Collector Alarm #2693

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

pwallk
Copy link
Contributor

@pwallk pwallk commented Sep 8, 2024

What's changed?

#2652
Snipaste_2024-09-08_20-00-31

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@tomsun28 tomsun28 self-requested a review September 9, 2024 02:16
@tomsun28 tomsun28 added the good first pull request Good for newcomers label Sep 10, 2024
alertService.editAlertStatus(CommonConstants.ALERT_STATUS_CODE_SOLVED, alertIds);

// Recovery notifications are generated only after an alarm has occurred
alertService.addAlert(restoreAlert);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 hi, how about use alarmCommonReduce.reduceAndSendAlarm(restoreAlert) here? We send it for subsequent alarm convergence, alarm silencing, and alarm storage processing. But it needs to be tested, because before it was monitoring related alarms, I don’t know whether it is compatible with collector alarm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I will try to reuse AlarmCommonReduce

.times(1)
.build();
this.offlineAlertMap.put(identity, alert);
this.alertService.addAlert(alert);
Copy link
Contributor

Choose a reason for hiding this comment

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

same +1

Comment on lines +133 to +135
if (alert.getTags() != null && alert.getTags().containsKey(CommonConstants.TAG_COLLECTOR_NAME)){
continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

hi, here has a question that why ignore to send notify the collector alarm message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AlertNotifyHandler andMonitor are heavily coupled and the changes are large. Therefore, send notify is skipped for now

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it👍 It is recommended that we can merge after version 1.6.1 and then see how to solve the coupling problem between monitor and alarm.

@tomsun28 tomsun28 added this to the 1.6.2 milestone Sep 22, 2024
@yangshuDBA
Copy link

When will this PR plan be merged?

@Aias00
Copy link
Contributor

Aias00 commented Nov 20, 2024

When will this PR plan be merged?

pls fix the conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

6 participants