Skip to content

Commit

Permalink
Merge pull request #32 from kyletbase2/loggroup-readme
Browse files Browse the repository at this point in the history
Updated Guardian version in Dockerfile and Log Group readme
  • Loading branch information
Guslington authored Sep 15, 2021
2 parents a72775e + f1b8be4 commit 141fef7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ruby:2.7-alpine

ARG GUARDIAN_VERSION="0.6.9"
ARG GUARDIAN_VERSION="0.7.1"

COPY . /src

Expand Down
14 changes: 12 additions & 2 deletions docs/custom_checks/log_group_metric_filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ Resources:
# Name of the cloud watch metric
- MetricName: MyFunctionErrors
# search pattern, see aws docs for syntax
Pattern: error
Pattern: 'error'
# metric to push to cloudwatch. Optional as it defaults to 1
MetricValue: 1

- Id: /prod/custom/app
# List of metric filters
MetricFilters:
# Name of the cloud watch metric
- MetricName: MyAppErrors
# search pattern, see aws docs for syntax
# note; any non-alphanumeric characters have to be wrapped in double quotes WITHIN single quotes
Pattern: '"Connection to ssl://mail.google.com:465 Timed Out"'
# metric to push to cloudwatch. Optional as it defaults to 1
MetricValue: 1

Templates:
LogGroup:
# use the MetricName name to override the alarm defaults
Expand Down

0 comments on commit 141fef7

Please sign in to comment.