-
Notifications
You must be signed in to change notification settings - Fork 2
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
Setup CloudWatch alarm for ClamAV notifications (#3895) #5943
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5943 +/- ##
========================================
Coverage 85.18% 85.18%
========================================
Files 154 154
Lines 19896 19896
========================================
Hits 16948 16948
Misses 2948 2948 ☔ View full report in Codecov by Sentry. |
affed71
to
6639266
Compare
Alarm from test on personal deployment https://groups.google.com/a/ucsc.edu/g/azul-group/c/Ulyl5S4vobQ/m/hcRDxHvHAAAJ |
ed4b5e1
to
858f6fb
Compare
56d1657
to
877ac0d
Compare
Tested alarm on After manually starting the
|
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.
Just one minor suggestion
} | ||
} for resource_name, period in [ | ||
('trail_logs', 10 * 60), | ||
('clamscan', 18 * 60 * 60) |
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.
I think this deserves a comment explaining the choice of evaluation period.
'clamscan': { | ||
'name': config.qualified_resource_name('clamscan', suffix='.filter'), | ||
# Patterns that include non-alphanumeric characters must be | ||
# wrapped in double quotation marks ("") | ||
'pattern': '"docker: clamscan"', | ||
'log_group_name': '/aws/cwagent/azul-gitlab', | ||
'metric_transformation': { | ||
'name': config.qualified_resource_name('clamscan'), | ||
'namespace': 'LogMetrics', | ||
'value': 1, | ||
'default_value': 0, | ||
} | ||
} |
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.
We may have lost the thread in the years since the ticket was filed:
Does this PR exhibit the behavior I clarified on the ticket just now?
14261c0
to
5f04a9f
Compare
5f04a9f
to
4d3d54f
Compare
Tested alarms on Freshclam alarm
Clamscan alarmTest not performed since the configuration is similar to the freshclam alarm, and it would take 10+ hours for the "clamscan succeeded" log message to appear. Clam_fail alarmThis alarm changes from an "OK" state to "alarm" if a "clamscan failed" or "freshclam failed" message is logged. Since this event is not easily reproducible, instead the filter pattern syntax used by this alarm was verified using the AWS Console. The actual filter pattern used by this alarm is |
4d3d54f
to
2d2d6c6
Compare
Connected issues: #3895
Checklist
Author
develop
issues/<GitHub handle of author>/<issue#>-<slug>
Author (partiality)
p
tag to titles of partial commitspartial
label to PR or this PR completely resolves all connected issuespartial
label1 when the issue title describes a problem, the corresponding PR
title is
Fix:
followed by the issue titleAuthor (reindex, API changes)
r
tag to commit title or this PR does not require reindexingreindex
label to PR or this PR does not require reindexingAPI
or this PR does not modify a REST APIa
(A
) tag to commit title for backwards (in)compatible changes or this PR does not modify a REST APIapp.py
or this PR does not modify a REST APIAuthor (chains)
base
label to the blocking PR or this PR is not chained to another PRchained
label to this PR or this PR is not chained to another PRAuthor (upgrading deployments)
u
tag to commit title or this PR does not require upgrading deploymentsupgrade
label to PR or this PR does not require upgrading deploymentsAuthor (operator tasks)
Author (hotfixes)
F
tag to main commit title or this PR does not include permanent fix for a temporary hotfixprod
branch has no temporary hotfixes for any connected issuesAuthor (before every review)
develop
, squashed old fixupsmake requirements_update
or this PR does not touch requirements*.txt, common.mk, Makefile and DockerfileR
tag to commit title or this PR does not touch requirements*.txtreqs
label to PR or this PR does not touch requirements*.txtmake integration_test
passes in personal deployment or this PR does not touch functionality that could break the ITPeer reviewer (after requesting changes)
Uncheck the Author (before every review) checklists.
Peer reviewer (after approval)
System administrator (after requesting changes)
Uncheck the before every review checklists. Update the
N reviews
label.System administrator (after approval)
demo
orno demo
no demo
no sandbox
N reviews
label is accurateOperator (before pushing merge the commit)
reindex
label andr
commit title tagno demo
upgrade
develop
sandbox
label or PR is labeledno sandbox
dev
or PR is labeledno sandbox
anvildev
or PR is labeledno sandbox
anvilprod
or PR is labeledno sandbox
sandbox
deployment or PR is labeledno sandbox
anvilbox
deployment or PR is labeledno sandbox
hammerbox
deployment or PR is labeledno sandbox
sandbox
deployment or PR is labeledno sandbox
anvilbox
deployment or PR is labeledno sandbox
hammerbox
deployment or PR is labeledno sandbox
sandbox
or this PR does not remove catalogs or otherwise causes unreferenced indices indev
anvilbox
or this PR does not remove catalogs or otherwise causes unreferenced indices inanvildev
hammerbox
or this PR does not remove catalogs or otherwise causes unreferenced indices inanvilprod
sandbox
or this PR does not require reindexingdev
anvilbox
or this PR does not require reindexinganvildev
hammerbox
or this PR does not require reindexinganvilprod
sandbox
or this PR does not require reindexingdev
anvilbox
or this PR does not require reindexinganvildev
hammerbox
or this PR does not require reindexinganvilprod
p
if the PR is labeledpartial
Operator (chain shortening)
develop
or this PR is not labeledbase
chained
label from the blocked PR or this PR is not labeledbase
base
base
label from this PR or this PR is not labeledbase
Operator (after pushing the merge commit)
dev.shared
dev.gitlab
dev
or PR is labeledno sandbox
anvildev.shared
anvildev.gitlab
anvildev
or PR is labeledno sandbox
anvilprod.shared
anvilprod.gitlab
anvilprod
or PR is labeledno sandbox
dev
1dev
1anvildev
1anvildev
1anvilprod
1anvilprod
1dev
anvildev
anvilprod
1 When pushing the merge commit is skipped due to the PR being
labelled
no sandbox
, the next build triggered by a PR whose merge commit ispushed determines this checklist item.
Operator (reindex)
dev
or this PR does not remove catalogs or otherwise causes unreferenced indices indev
anvildev
or this PR does not remove catalogs or otherwise causes unreferenced indices inanvildev
anvilprod
or this PR does not remove catalogs or otherwise causes unreferenced indices inanvilprod
dev
or this PR does not merely remove sources from existing catalogs indev
anvildev
or this PR does not merely remove sources from existing catalogs inanvildev
anvilprod
or this PR does not merely remove sources from existing catalogs inanvilprod
dev
or this PR does not merely add sources to existing catalogs indev
anvildev
or this PR does not merely add sources to existing catalogs inanvildev
anvilprod
or this PR does not merely add sources to existing catalogs inanvilprod
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
anvilprod
or this PR does not require reindexinganvilprod
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
anvilprod
or this PR does not require reindexinganvilprod
dev
deployment or this PR does not require reindexingdev
anvildev
deployment or this PR does not require reindexinganvildev
anvilprod
deployment or this PR does not require reindexinganvilprod
Operator
prod
promotion PR:Shorthand for review comments
L
line is too longW
line wrapping is wrongQ
bad quotesF
other formatting problem