generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a96609
commit 5253245
Showing
3 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
terraform/environments/corporate-staff-rostering/locals_cloudwatch_dashboards.tf
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,69 @@ | ||
locals { | ||
|
||
cloudwatch_dashboard_widget_groups = { | ||
app = { | ||
header_markdown = "## EC2 App Tier" | ||
width = 8 | ||
height = 8 | ||
search_filter = { | ||
ec2_tag = [ | ||
{ tag_name = "component", tag_value = "app" }, | ||
] | ||
} | ||
widgets = [ | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.instance-status-check-failed, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.system-status-check-failed, | ||
# CloudWatch agent not running, monitored by Glenn Bot instead | ||
] | ||
} | ||
|
||
db = { | ||
header_markdown = "## EC2 Oracle Database" | ||
width = 8 | ||
height = 8 | ||
add_ebs_widgets = { | ||
iops = true | ||
throughput = true | ||
} | ||
search_filter = { | ||
ec2_tag = [ | ||
{ tag_name = "component", tag_value = "data" }, | ||
] | ||
} | ||
widgets = [ | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.instance-status-check-failed, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.system-status-check-failed, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_cwagent_linux.free-disk-space-low, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_cwagent_linux.high-memory-usage, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_cwagent_linux.cpu-iowait-high, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_instance_cwagent_linux.free-disk-space-low, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_instance_cwagent_collectd_service_status_os.service-status-error-os-layer, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_instance_cwagent_collectd_service_status_app.service-status-error-app-layer, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_instance_cwagent_collectd_oracle_db_connected.oracle-db-disconnected, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_instance_cwagent_collectd_oracle_db_backup.oracle-db-rman-backup-error, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_instance_cwagent_collectd_oracle_db_backup.oracle-db-rman-backup-did-not-run, | ||
] | ||
} | ||
|
||
web = { | ||
header_markdown = "## EC2 Web Tier" | ||
width = 8 | ||
height = 8 | ||
search_filter = { | ||
ec2_tag = [ | ||
{ tag_name = "component", tag_value = "web" }, | ||
] | ||
} | ||
widgets = [ | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.instance-status-check-failed, | ||
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.system-status-check-failed, | ||
# CloudWatch agent not running, monitored by Glenn Bot instead | ||
] | ||
} | ||
|
||
} | ||
} | ||
|
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
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