Skip to content

Commit

Permalink
TM-861: add ec2 throughput to dashboards (#9291)
Browse files Browse the repository at this point in the history
* add expression_maths option

* add network widgets

* add network widgets to dashboards

* -

* -

* -

* -

* -

* -

* -

* -

* -
  • Loading branch information
drobinson-moj authored Jan 9, 2025
1 parent 97864f9 commit 57af2a6
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-status-check-failed,
# CloudWatch agent not running, monitored by Glenn Bot instead
]
}
Expand All @@ -33,8 +36,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand All @@ -58,8 +64,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-status-check-failed,
# CloudWatch agent not running, monitored by Glenn Bot instead
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "pd-csr-db-a" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -69,8 +72,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "pd-csr-db-b" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down
12 changes: 12 additions & 0 deletions terraform/environments/nomis/locals_cloudwatch_dashboards.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-status-check-failed,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_cwagent_linux.cpu-iowait-high,
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,
Expand Down Expand Up @@ -60,8 +63,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -90,8 +96,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand All @@ -112,8 +121,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down
12 changes: 12 additions & 0 deletions terraform/environments/nomis/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "prod-nomis-db-1-a" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -108,8 +111,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "prod-nomis-db-1-b" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -141,8 +147,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "prod-nomis-db-2-a" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -185,8 +194,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "prod-nomis-db-2-b" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down
12 changes: 12 additions & 0 deletions terraform/environments/oasys/locals_cloudwatch_dashboards.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-status-check-failed,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2_cwagent_linux.cpu-iowait-high,
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,
Expand Down Expand Up @@ -57,8 +60,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -87,8 +93,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand All @@ -109,8 +118,11 @@ locals {
}
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down
6 changes: 6 additions & 0 deletions terraform/environments/oasys/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "pd-oasys-db-a" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down Expand Up @@ -107,8 +110,11 @@ locals {
search_filter = { ec2_tag = [{ tag_name = "Name", tag_value = "pd-oasys-db-b" }] }
widgets = [
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.cpu-utilization-high,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-in-bandwidth,
module.baseline_presets.cloudwatch_dashboard_widgets.ec2.network-out-bandwidth,
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.attached-ebs-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,
Expand Down
Loading

0 comments on commit 57af2a6

Please sign in to comment.