forked from Sage-Bionetworks-IT/organizations-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IT-3471] Configure dashboards for Agora
Create cloudwatch dashboards for agora develop, staging and prod in the monitoring account. This requires setting up beanstalk to send metrics to cloudwatch in the agora accounts. depends on Sage-Bionetworks/agora2-infra#25
- Loading branch information
Showing
2 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
org-formation/740-cloudwatch-dashboard/cw-dashboards.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: Cross Account Cloudwatch Dashboards | ||
Resources: | ||
{% for Dashboard in Dashboards %} | ||
Dashboard{{ Dashboard.Name | replace('-','') | replace('_','') }}: | ||
Type: AWS::CloudWatch::Dashboard | ||
Properties: | ||
DashboardName: {{ Dashboard.Name }} | ||
DashboardBody: > | ||
{ | ||
"widgets": [ | ||
{ | ||
"type": "metric", | ||
"width": 20, | ||
"height": 6, | ||
"properties": { | ||
"metrics": [ | ||
[ | ||
"AWS/ElasticBeanstalk", | ||
"ApplicationRequests2xx", | ||
"EnvironmentName", | ||
"{{ Dashboard.ElasticBeanstalkEnvName }}", | ||
{ | ||
"accountId": "{{ Dashboard.AccountId }}" | ||
} | ||
] | ||
], | ||
"legend": { | ||
"position": "bottom" | ||
}, | ||
"region": "us-east-1", | ||
"liveData": false, | ||
"title": "EnvironmentHealth: Average", | ||
"view": "timeSeries", | ||
"stacked": false | ||
} | ||
}, | ||
{ | ||
"type": "metric", | ||
"properties": { | ||
"metrics": [ | ||
[ | ||
"AWS/ElasticBeanstalk", | ||
"ApplicationRequests2xx", | ||
"EnvironmentName", | ||
"{{ Dashboard.ElasticBeanstalkEnvName }}", | ||
{ | ||
"accountId": "{{ Dashboard.AccountId }}" | ||
} | ||
] | ||
], | ||
"legend": { | ||
"position": "bottom" | ||
}, | ||
"region": "us-east-1", | ||
"liveData": false, | ||
"title": "ApplicationRequests2xx: Average", | ||
"view": "timeSeries", | ||
"stacked": false | ||
} | ||
}, | ||
{ | ||
"type": "metric", | ||
"properties": { | ||
"metrics": [ | ||
[ | ||
"AWS/ElasticBeanstalk", | ||
"ApplicationRequests3xx", | ||
"EnvironmentName", | ||
"{{ Dashboard.ElasticBeanstalkEnvName }}", | ||
{ | ||
"accountId": "{{ Dashboard.AccountId }}" | ||
} | ||
] | ||
], | ||
"legend": { | ||
"position": "bottom" | ||
}, | ||
"region": "us-east-1", | ||
"liveData": false, | ||
"title": "ApplicationRequests3xx: Average", | ||
"view": "timeSeries", | ||
"stacked": false | ||
} | ||
}, | ||
{ | ||
"type": "metric", | ||
"properties": { | ||
"metrics": [ | ||
[ | ||
"AWS/ElasticBeanstalk", | ||
"ApplicationRequests4xx", | ||
"EnvironmentName", | ||
"{{ Dashboard.ElasticBeanstalkEnvName }}", | ||
{ | ||
"accountId": "{{ Dashboard.AccountId }}" | ||
} | ||
] | ||
], | ||
"legend": { | ||
"position": "bottom" | ||
}, | ||
"region": "us-east-1", | ||
"liveData": false, | ||
"title": "ApplicationRequests4xx: Average", | ||
"view": "timeSeries", | ||
"stacked": false | ||
} | ||
}, | ||
{ | ||
"type": "metric", | ||
"properties": { | ||
"metrics": [ | ||
[ | ||
"AWS/ElasticBeanstalk", | ||
"ApplicationRequests5xx", | ||
"EnvironmentName", | ||
"{{ Dashboard.ElasticBeanstalkEnvName }}", | ||
{ | ||
"accountId": "{{ Dashboard.AccountId }}" | ||
} | ||
] | ||
], | ||
"legend": { | ||
"position": "bottom" | ||
}, | ||
"region": "us-east-1", | ||
"liveData": false, | ||
"title": "ApplicationRequests5xx: Average", | ||
"view": "timeSeries", | ||
"stacked": false | ||
} | ||
} | ||
] | ||
} | ||
{% endfor %} |