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
Before sending notification verifying no changes in alert for sometime #178
Conversation
Codecov Report
@@ Coverage Diff @@
## master #178 +/- ##
==========================================
+ Coverage 23.26% 23.64% +0.37%
==========================================
Files 12 12
Lines 417 423 +6
Branches 50 52 +2
==========================================
+ Hits 97 100 +3
- Misses 315 317 +2
- Partials 5 6 +1
Continue to review full report at Codecov.
|
tendrl-bug-id: Tendrl#177 bugzilla: 1564175 Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
401bb45
to
b817ed6
Compare
lock.release() | ||
if (datetime.utcnow() - parser.parse( | ||
alert.time_stamp | ||
).replace(tzinfo=None)).seconds >= 120: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it won't sent notification if any changes in alert for last 120 sec. And i have verified "dateutil" package is there in centos and rhel and fedora also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How we decide 120 sec is enough and foolproof to wait for?
@r0h4n @shtripat @nthomas-redhat please review |
@fbalak if possible please verify and comment here |
…t status for sometime tendrl-bug-id: Tendrl#177 bugzilla: 1564175 Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
…t status for sometime tendrl-bug-id: Tendrl#177 bugzilla: 1564175
@shtripat grafana sometimes changing alert status in 60 sec but raising notification after 120 sec, it is not happening always but sometimes it is happening. Warning dashbaord raise alert raised info alert after 60 sec when threshold cross 90 and above, but critical raise alert after 120 sec only. i have checked the alert history they modified alert status in 60 sec but notification came after 120 sec only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. But make sure all possible scenarios are verified with trivial ones as well as corner cases.
tendrl-bug-id: #177
bugzilla: 1564175
Signed-off-by: GowthamShanmugasundaram gshanmug@redhat.com