-
Notifications
You must be signed in to change notification settings - Fork 6
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
Added canary url and stepfunction monitoring with sns email and slack… #40
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
============================================
+ Coverage 73.49% 76.64% +3.15%
- Complexity 163 174 +11
============================================
Files 43 51 +8
Lines 962 1122 +160
Branches 47 50 +3
============================================
+ Hits 707 860 +153
- Misses 234 239 +5
- Partials 21 23 +2 ☔ View full report in Codecov by Sentry. |
6eebc5e
to
7bb028e
Compare
… integration Signed-off-by: Brandon Shien <[email protected]>
|
||
// The email list for receiving alerts | ||
this.emailList = [ | ||
'[email protected]' |
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.
Move to project.ts
infrastructure/lib/stacks/secrets.ts
Outdated
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
this.secretsObject = new Secret(this, 'MetricsCreds', { | ||
secretName: 'metrics-creds', |
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.
input from project.ts
infrastructure/lib/stacks/secrets.ts
Outdated
import {Secret} from "aws-cdk-lib/aws-secretsmanager"; | ||
|
||
export class OpenSearchMetricsSecrets extends Stack { | ||
readonly secretsObject: Secret; |
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.
name it secret
package org.opensearchmetrics.datasource; | ||
|
||
public enum DataSourceType { | ||
SLACK_WEBHOOK_URL, |
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.
add unit tests
@JsonProperty("AlarmName") | ||
private String alarmName; | ||
@JsonProperty("AlarmDescription") | ||
private String alarmDescription; |
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.
move to model
private String region; | ||
@JsonProperty("AlarmArn") | ||
private String alarmArn; | ||
} |
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.
Move this AlarmObject
to model/alarm package.
fe78734
to
ddc3fe3
Compare
build.gradle
Outdated
@@ -28,6 +28,7 @@ dependencies { | |||
implementation 'io.github.acm19:aws-request-signing-apache-interceptor:2.3.1' | |||
|
|||
implementation 'com.amazonaws:aws-lambda-java-core:1.2.3' | |||
implementation 'com.amazonaws:aws-lambda-java-events:3.7.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.
The latest one is 3.11.5, can you please update ?
LGTM, thanks @bshien. |
… integration
Description
Creates a Cloudwatch Synthetic Canary to monitor the metrics.opensearch.org url and monitors the step functions for failure. If either of these fail, a message will be published to SNS, and will send email and slack notifications.
Issues Resolved
#37
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.