Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Ensure alarms raised during collection for profile projects are reported #1455

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

henryzhx8
Copy link
Collaborator

@henryzhx8 henryzhx8 commented Apr 18, 2024

Alarms generated by the collector during the data collection process for profile
projects were previously not reported due to a rule designed to prevent circular
reporting of alarms. This rule intended to avoid alarms raised as a result
of attempting to send alarms to the profile project. However, it inadvertently
blocked genuine alarms that occurred during the direct collection to the profile
project itself. This fix adjusts the rule to differentiate between circular
alarms and legitimate collection errors, allowing the latter to be reported
as expected.

core/monitor/LogtailAlarm.cpp Outdated Show resolved Hide resolved
@yyuuttaaoo yyuuttaaoo changed the title fix: enable alarm for profile project to be reported fix: Ensure alarms raised during collection for profile projects are reported Apr 18, 2024
@yyuuttaaoo yyuuttaaoo merged commit 71e3d97 into main Apr 18, 2024
15 checks passed
@yyuuttaaoo yyuuttaaoo added the bug Something isn't working label Apr 18, 2024
@yyuuttaaoo yyuuttaaoo added this to the v2.0 milestone Apr 18, 2024
linrunqi08 added a commit that referenced this pull request Jun 12, 2024
…ojects are reported (#1455) #1534

Co-authored-by: henryzhx8 <zhhxjack8@aliyun.com>
@henryzhx8 henryzhx8 deleted the fix/alarm branch June 21, 2024 08:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants