-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add support for ALB alarms and dashboard #97
Conversation
23a9cd6
to
f9891ce
Compare
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.
Great work @direnakkoc . The main issue is still with the challenge of associating an ALB Target Group with the correct Load Balancer.
Going back to the original design discussion (#89), we have to find the Listener Rule, then the Listener and only then can we find the Load Balancer!
12a072b
to
6038136
Compare
6038136
to
4df49fb
Compare
for (const [listenerRuleLogicalId, listenerRule] of Object.entries(listenerRuleResources)) { | ||
for (const action of listenerRule.Properties.Actions || []) { | ||
const targetGroupArn = action.TargetGroupArn | ||
if (targetGroupArn.Ref === targetGroupLogicalId) { |
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.
Shouldn't we also check here if targetGroupArn exist? like we did above
(targetGroupArn?.Ref === targetGroupLogicalId)
- Create unit-tests for ALB alarms and ALB Taget Group alarms
- Separate ALB resources in unit-test - Tidy up modules
- Modify alarms.test.js and alarms-lambda.test.js for ALB - Create a new function to find Load Balancers for Target Group
- Correct unit-tests values for load balancer target group widget and alarms
- Create integration test for HTTPCode_Target_5XX_Count metric - Provide pictures of integration tests
- This enables us to use esbuild to bundle the CloudFormation Macro - We don't have to worry about adding a loader for YAML
93141b1
to
6a20708
Compare
Description
Add support for ALB alarms and dashboard for the metrics are
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: