Page MenuHomePhabricator

[terraform] metric filters for error logs in identity service
ClosedPublic

Authored by will on Wed, May 1, 8:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 15, 7:44 PM
Unknown Object (File)
Wed, May 15, 10:08 AM
Unknown Object (File)
Mon, May 13, 9:00 PM
Unknown Object (File)
Mon, May 13, 3:45 PM
Unknown Object (File)
Mon, May 13, 4:58 AM
Unknown Object (File)
Tue, May 7, 9:01 PM
Unknown Object (File)
Tue, May 7, 9:00 PM
Unknown Object (File)
Tue, May 7, 10:07 AM
Subscribers

Details

Summary

This introduces metric filters to be used by cloudwatch alarms later in the stack.

Decided to use a for_each pattern so adding new identity alarms can be as easy as adding the pattern to identity_error_patterns.

Depends on D11852

Test Plan

Activated metric filter successfully with example error logs on AWS Console

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Wed, May 1, 8:22 PM
varun added 1 blocking reviewer(s): bartek.
varun added inline comments.
services/terraform/remote/aws_cloudwatch_alarms.tf
6 ↗(On Diff #39726)

see inline comment on D11854

bartek added inline comments.
services/terraform/remote/aws_cloudwatch_alarms.tf
42 ↗(On Diff #39726)

Nice!

45 ↗(On Diff #39726)

So, following discussion from D11852, the $.fields.message could be simply replaced with $.fields.errorType?

This revision is now accepted and ready to land.Sun, May 5, 10:49 PM
services/terraform/remote/aws_cloudwatch_alarms.tf
45 ↗(On Diff #39726)

Yep! That would be correct.

add sync pattern and address review feedback