Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

feat: Add Grafana panels and alerts #35

Merged
merged 1 commit into from
Jun 7, 2023
Merged

feat: Add Grafana panels and alerts #35

merged 1 commit into from
Jun 7, 2023

Conversation

xav
Copy link
Contributor

@xav xav commented Jun 7, 2023

Description

Add additional panels and alerts to Grafana.

How Has This Been Tested?

Not tested

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@xav xav temporarily deployed to infra/staging June 7, 2023 13:19 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/3071f643-104b-4e67-8810-611611e0d2aa/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # module.monitoring.data.jsonnet_file.dashboard will be read during apply
  # (config refers to values not yet known)
 <= data "jsonnet_file" "dashboard" {
      + ext_str  = {
          + "cloudwatch_uid"   = (known after apply)
          + "dashboard_title"  = "staging - history"
          + "dashboard_uid"    = "staging-history"
          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"
          + "ecs_service_name" = "walletconnect-staging-history-service"
          + "environment"      = null
          + "notifications"    = jsonencode([])
          + "prometheus_uid"   = (known after apply)
        }
      + id       = (known after apply)
      + rendered = (known after apply)
      + source   = "monitoring/dashboard.jsonnet"
    }

  # module.monitoring.grafana_dashboard.main will be created
  + resource "grafana_dashboard" "main" {
      + config_json  = (known after apply)
      + dashboard_id = (known after apply)
      + id           = (known after apply)
      + message      = "Updated by Terraform"
      + overwrite    = true
      + slug         = (known after apply)
      + uid          = (known after apply)
      + url          = (known after apply)
      + version      = (known after apply)
    }

  # module.monitoring.grafana_data_source.cloudwatch will be created
  + resource "grafana_data_source" "cloudwatch" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + defaultRegion = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"
      + type               = "cloudwatch"
      + uid                = (known after apply)
    }

  # module.monitoring.grafana_data_source.prometheus will be created
  + resource "grafana_data_source" "prometheus" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + httpMethod    = "GET"
              + manageAlerts  = false
              + sigV4Auth     = true
              + sigV4AuthType = "ec2_iam_role"
              + sigV4Region   = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-amp"
      + type               = "prometheus"
      + uid                = (known after apply)
      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"
    }

Plan: 3 to add, 0 to change, 0 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A  + create%0A <= read (data resources)%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.data.jsonnet_file.dashboard will be read during apply%0A  # (config refers to values not yet known)%0A <= data "jsonnet_file" "dashboard" {%0A      + ext_str  = {%0A          + "cloudwatch_uid"   = (known after apply)%0A          + "dashboard_title"  = "staging - history"%0A          + "dashboard_uid"    = "staging-history"%0A          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"%0A          + "ecs_service_name" = "walletconnect-staging-history-service"%0A          + "environment"      = null%0A          + "notifications"    = jsonencode([])%0A          + "prometheus_uid"   = (known after apply)%0A        }%0A      + id       = (known after apply)%0A      + rendered = (known after apply)%0A      + source   = "monitoring/dashboard.jsonnet"%0A    }%0A%0A  # module.monitoring.grafana_dashboard.main will be created%0A  + resource "grafana_dashboard" "main" {%0A      + config_json  = (known after apply)%0A      + dashboard_id = (known after apply)%0A      + id           = (known after apply)%0A      + message      = "Updated by Terraform"%0A      + overwrite    = true%0A      + slug         = (known after apply)%0A      + uid          = (known after apply)%0A      + url          = (known after apply)%0A      + version      = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.cloudwatch will be created%0A  + resource "grafana_data_source" "cloudwatch" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + defaultRegion = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"%0A      + type               = "cloudwatch"%0A      + uid                = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.prometheus will be created%0A  + resource "grafana_data_source" "prometheus" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + httpMethod    = "GET"%0A              + manageAlerts  = false%0A              + sigV4Auth     = true%0A              + sigV4AuthType = "ec2_iam_role"%0A              + sigV4Region   = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-amp"%0A      + type               = "prometheus"%0A      + uid                = (known after apply)%0A      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"%0A    }%0A%0APlan: 3 to add, 0 to change, 0 to destroy.%0A
::debug::stderr: 
::debug::exitcode: 0

Action: pull_request

@xav xav temporarily deployed to infra/staging June 7, 2023 13:26 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/0cbae9d4-3b7b-43d8-b709-abd208a3902a/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # module.monitoring.data.jsonnet_file.dashboard will be read during apply
  # (config refers to values not yet known)
 <= data "jsonnet_file" "dashboard" {
      + ext_str  = {
          + "cloudwatch_uid"   = (known after apply)
          + "dashboard_title"  = "staging - history"
          + "dashboard_uid"    = "staging-history"
          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"
          + "ecs_service_name" = "walletconnect-staging-history-service"
          + "environment"      = "staging"
          + "notifications"    = jsonencode([])
          + "prometheus_uid"   = (known after apply)
        }
      + id       = (known after apply)
      + rendered = (known after apply)
      + source   = "monitoring/dashboard.jsonnet"
    }

  # module.monitoring.grafana_dashboard.main will be created
  + resource "grafana_dashboard" "main" {
      + config_json  = (known after apply)
      + dashboard_id = (known after apply)
      + id           = (known after apply)
      + message      = "Updated by Terraform"
      + overwrite    = true
      + slug         = (known after apply)
      + uid          = (known after apply)
      + url          = (known after apply)
      + version      = (known after apply)
    }

  # module.monitoring.grafana_data_source.cloudwatch will be created
  + resource "grafana_data_source" "cloudwatch" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + defaultRegion = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"
      + type               = "cloudwatch"
      + uid                = (known after apply)
    }

  # module.monitoring.grafana_data_source.prometheus will be created
  + resource "grafana_data_source" "prometheus" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + httpMethod    = "GET"
              + manageAlerts  = false
              + sigV4Auth     = true
              + sigV4AuthType = "ec2_iam_role"
              + sigV4Region   = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-amp"
      + type               = "prometheus"
      + uid                = (known after apply)
      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"
    }

Plan: 3 to add, 0 to change, 0 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A  + create%0A <= read (data resources)%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.data.jsonnet_file.dashboard will be read during apply%0A  # (config refers to values not yet known)%0A <= data "jsonnet_file" "dashboard" {%0A      + ext_str  = {%0A          + "cloudwatch_uid"   = (known after apply)%0A          + "dashboard_title"  = "staging - history"%0A          + "dashboard_uid"    = "staging-history"%0A          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"%0A          + "ecs_service_name" = "walletconnect-staging-history-service"%0A          + "environment"      = "staging"%0A          + "notifications"    = jsonencode([])%0A          + "prometheus_uid"   = (known after apply)%0A        }%0A      + id       = (known after apply)%0A      + rendered = (known after apply)%0A      + source   = "monitoring/dashboard.jsonnet"%0A    }%0A%0A  # module.monitoring.grafana_dashboard.main will be created%0A  + resource "grafana_dashboard" "main" {%0A      + config_json  = (known after apply)%0A      + dashboard_id = (known after apply)%0A      + id           = (known after apply)%0A      + message      = "Updated by Terraform"%0A      + overwrite    = true%0A      + slug         = (known after apply)%0A      + uid          = (known after apply)%0A      + url          = (known after apply)%0A      + version      = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.cloudwatch will be created%0A  + resource "grafana_data_source" "cloudwatch" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + defaultRegion = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"%0A      + type               = "cloudwatch"%0A      + uid                = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.prometheus will be created%0A  + resource "grafana_data_source" "prometheus" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + httpMethod    = "GET"%0A              + manageAlerts  = false%0A              + sigV4Auth     = true%0A              + sigV4AuthType = "ec2_iam_role"%0A              + sigV4Region   = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-amp"%0A      + type               = "prometheus"%0A      + uid                = (known after apply)%0A      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"%0A    }%0A%0APlan: 3 to add, 0 to change, 0 to destroy.%0A
::debug::stderr: 
::debug::exitcode: 0

Action: pull_request

@xav xav temporarily deployed to infra/staging June 7, 2023 13:31 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/61f2f218-0d68-4b17-9450-798a560d3d53/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # module.monitoring.data.jsonnet_file.dashboard will be read during apply
  # (config refers to values not yet known)
 <= data "jsonnet_file" "dashboard" {
      + ext_str  = {
          + "cloudwatch_uid"   = (known after apply)
          + "dashboard_title"  = "staging - history"
          + "dashboard_uid"    = "staging-history"
          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"
          + "ecs_service_name" = "walletconnect-staging-history-service"
          + "environment"      = "staging"
          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"
          + "notifications"    = jsonencode([])
          + "prometheus_uid"   = (known after apply)
          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"
        }
      + id       = (known after apply)
      + rendered = (known after apply)
      + source   = "monitoring/dashboard.jsonnet"
    }

  # module.monitoring.grafana_dashboard.main will be created
  + resource "grafana_dashboard" "main" {
      + config_json  = (known after apply)
      + dashboard_id = (known after apply)
      + id           = (known after apply)
      + message      = "Updated by Terraform"
      + overwrite    = true
      + slug         = (known after apply)
      + uid          = (known after apply)
      + url          = (known after apply)
      + version      = (known after apply)
    }

  # module.monitoring.grafana_data_source.cloudwatch will be created
  + resource "grafana_data_source" "cloudwatch" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + defaultRegion = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"
      + type               = "cloudwatch"
      + uid                = (known after apply)
    }

  # module.monitoring.grafana_data_source.prometheus will be created
  + resource "grafana_data_source" "prometheus" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + httpMethod    = "GET"
              + manageAlerts  = false
              + sigV4Auth     = true
              + sigV4AuthType = "ec2_iam_role"
              + sigV4Region   = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-amp"
      + type               = "prometheus"
      + uid                = (known after apply)
      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"
    }

Plan: 3 to add, 0 to change, 0 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A  + create%0A <= read (data resources)%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.data.jsonnet_file.dashboard will be read during apply%0A  # (config refers to values not yet known)%0A <= data "jsonnet_file" "dashboard" {%0A      + ext_str  = {%0A          + "cloudwatch_uid"   = (known after apply)%0A          + "dashboard_title"  = "staging - history"%0A          + "dashboard_uid"    = "staging-history"%0A          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"%0A          + "ecs_service_name" = "walletconnect-staging-history-service"%0A          + "environment"      = "staging"%0A          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"%0A          + "notifications"    = jsonencode([])%0A          + "prometheus_uid"   = (known after apply)%0A          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"%0A        }%0A      + id       = (known after apply)%0A      + rendered = (known after apply)%0A      + source   = "monitoring/dashboard.jsonnet"%0A    }%0A%0A  # module.monitoring.grafana_dashboard.main will be created%0A  + resource "grafana_dashboard" "main" {%0A      + config_json  = (known after apply)%0A      + dashboard_id = (known after apply)%0A      + id           = (known after apply)%0A      + message      = "Updated by Terraform"%0A      + overwrite    = true%0A      + slug         = (known after apply)%0A      + uid          = (known after apply)%0A      + url          = (known after apply)%0A      + version      = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.cloudwatch will be created%0A  + resource "grafana_data_source" "cloudwatch" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + defaultRegion = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"%0A      + type               = "cloudwatch"%0A      + uid                = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.prometheus will be created%0A  + resource "grafana_data_source" "prometheus" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + httpMethod    = "GET"%0A              + manageAlerts  = false%0A              + sigV4Auth     = true%0A              + sigV4AuthType = "ec2_iam_role"%0A              + sigV4Region   = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-amp"%0A      + type               = "prometheus"%0A      + uid                = (known after apply)%0A      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"%0A    }%0A%0APlan: 3 to add, 0 to change, 0 to destroy.%0A
::debug::stderr: 
::debug::exitcode: 0

Action: pull_request

@xav xav temporarily deployed to infra/staging June 7, 2023 13:40 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/690c6baa-00f9-4e02-9ca5-8b030e8591c9/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # module.monitoring.data.jsonnet_file.dashboard will be read during apply
  # (config refers to values not yet known)
 <= data "jsonnet_file" "dashboard" {
      + ext_str  = {
          + "cloudwatch_uid"   = (known after apply)
          + "dashboard_title"  = "staging - history"
          + "dashboard_uid"    = "staging-history"
          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"
          + "ecs_service_name" = "walletconnect-staging-history-service"
          + "environment"      = "staging"
          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"
          + "notifications"    = jsonencode([])
          + "prometheus_uid"   = (known after apply)
          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"
        }
      + id       = (known after apply)
      + rendered = (known after apply)
      + source   = "monitoring/dashboard.jsonnet"
    }

  # module.monitoring.grafana_dashboard.main will be created
  + resource "grafana_dashboard" "main" {
      + config_json  = (known after apply)
      + dashboard_id = (known after apply)
      + id           = (known after apply)
      + message      = "Updated by Terraform"
      + overwrite    = true
      + slug         = (known after apply)
      + uid          = (known after apply)
      + url          = (known after apply)
      + version      = (known after apply)
    }

  # module.monitoring.grafana_data_source.cloudwatch will be created
  + resource "grafana_data_source" "cloudwatch" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + defaultRegion = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"
      + type               = "cloudwatch"
      + uid                = (known after apply)
    }

  # module.monitoring.grafana_data_source.prometheus will be created
  + resource "grafana_data_source" "prometheus" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + httpMethod    = "GET"
              + manageAlerts  = false
              + sigV4Auth     = true
              + sigV4AuthType = "ec2_iam_role"
              + sigV4Region   = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-amp"
      + type               = "prometheus"
      + uid                = (known after apply)
      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"
    }

Plan: 3 to add, 0 to change, 0 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A  + create%0A <= read (data resources)%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.data.jsonnet_file.dashboard will be read during apply%0A  # (config refers to values not yet known)%0A <= data "jsonnet_file" "dashboard" {%0A      + ext_str  = {%0A          + "cloudwatch_uid"   = (known after apply)%0A          + "dashboard_title"  = "staging - history"%0A          + "dashboard_uid"    = "staging-history"%0A          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"%0A          + "ecs_service_name" = "walletconnect-staging-history-service"%0A          + "environment"      = "staging"%0A          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"%0A          + "notifications"    = jsonencode([])%0A          + "prometheus_uid"   = (known after apply)%0A          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"%0A        }%0A      + id       = (known after apply)%0A      + rendered = (known after apply)%0A      + source   = "monitoring/dashboard.jsonnet"%0A    }%0A%0A  # module.monitoring.grafana_dashboard.main will be created%0A  + resource "grafana_dashboard" "main" {%0A      + config_json  = (known after apply)%0A      + dashboard_id = (known after apply)%0A      + id           = (known after apply)%0A      + message      = "Updated by Terraform"%0A      + overwrite    = true%0A      + slug         = (known after apply)%0A      + uid          = (known after apply)%0A      + url          = (known after apply)%0A      + version      = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.cloudwatch will be created%0A  + resource "grafana_data_source" "cloudwatch" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + defaultRegion = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"%0A      + type               = "cloudwatch"%0A      + uid                = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.prometheus will be created%0A  + resource "grafana_data_source" "prometheus" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + httpMethod    = "GET"%0A              + manageAlerts  = false%0A              + sigV4Auth     = true%0A              + sigV4AuthType = "ec2_iam_role"%0A              + sigV4Region   = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-amp"%0A      + type               = "prometheus"%0A      + uid                = (known after apply)%0A      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"%0A    }%0A%0APlan: 3 to add, 0 to change, 0 to destroy.%0A
::debug::stderr: 
::debug::exitcode: 0

Action: pull_request

@xav xav temporarily deployed to infra/prod June 7, 2023 13:42 — with GitHub Actions Inactive
@xav xav temporarily deployed to infra/staging June 7, 2023 13:42 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/9158e54a-97f7-411d-af07-1eb0969cf909/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.monitoring.grafana_dashboard.main will be updated in-place
  ~ resource "grafana_dashboard" "main" {
      ~ config_json  = jsonencode(
          ~ {
              + __inputs             = []
              + __requires           = []
              ~ annotations          = {
                  ~ list = [
                      ~ {
                          ~ datasource = {
                              - type = "datasource"
                              - uid  = "grafana"
                            } -> "-- Grafana --"
                            name       = "Annotations & Alerts"
                            # (7 unchanged attributes hidden)
                        },
                    ]
                }
              - fiscalYearStartMonth = 0
              + gnetId               = null
              + hideControls         = false
              ~ panels               = [
                  ~ {
                      + collapsed     = false
                      ~ datasource    = {
                          ~ type = "prometheus" -> "datasource"
                          ~ uid  = "t6t9OnQ4k" -> "grafana"
                        }
                      - fieldConfig   = {
                          - defaults  = {
                              - color      = {
                                  - mode = "palette-classic"
                                }
                              - custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - axisPlacement     = "auto"
                                  - barAlignment      = 0
                                  - drawStyle         = "line"
                                  - fillOpacity       = 0
                                  - gradientMode      = "none"
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - lineInterpolation = "linear"
                                  - lineWidth         = 1
                                  - pointSize         = 5
                                  - scaleDistribution = {
                                      - type = "linear"
                                    }
                                  - showPoints        = "auto"
                                  - spanNulls         = false
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  - thresholdsStyle   = {
                                      - mode = "off"
                                    }
                                }
                              - mappings   = []
                              - thresholds = {
                                  - mode  = "absolute"
                                  - steps = [
                                      - {
                                          - color = "green"
                                          - value = null
                                        },
                                    ]
                                }
                            }
                          - overrides = []
                        }
                      ~ gridPos       = {
                          ~ h = 8 -> 1
                          ~ w = 12 -> 24
                            # (2 unchanged attributes hidden)
                        }
                      - links         = []
                      - options       = {
                          - legend  = {
                              - calcs       = []
                              - displayMode = "list"
                              - placement   = "bottom"
                              - showLegend  = true
                            }
                          - tooltip = {
                              - mode = "multi"
                              - sort = "none"
                            }
                        }
                      - pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              ~ datasource   = {
                                  ~ type = "prometheus" -> "datasource"
                                  ~ uid  = "t6t9OnQ4k" -> "grafana"
                                }
                              - exemplar     = true
                              - expr         = "sum(rate(received_items{}[10m]))"
                              - legendFormat = "received items"
                              - refId        = "A"
                            },
                        ]
                      ~ title         = "Received Items" -> "Application"
                      ~ type          = "timeseries" -> "row"
                    },
                  ~ {
                      + alert         = {
                          + alertRuleTags       = [
                              + {},
                            ]
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 70,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "CPU_Avg",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - Prod - ECS - CPU utilization is high (over 70)"
                          + name                = "History - Prod - ECS - CPU Utilization alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      ~ datasource    = {
                          ~ type = "prometheus" -> "cloudwatch"
                          ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                        }
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  + axisSoftMax       = 40
                                  + axisSoftMin       = 0
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  ~ thresholdsStyle   = {
                                      ~ mode = "off" -> "area"
                                    }
                                    # (11 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      + {
                                          + color = "orange"
                                          + value = 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              + unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                          ~ overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "CPU_Max"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "dark-blue"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "CPU_Avg"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "blue"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ gridPos       = {
                          ~ x = 12 -> 0
                          ~ y = 0 -> 1
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              + alias            = "CPU (Max)"
                              ~ datasource       = {
                                  ~ type = "prometheus" -> "cloudwatch"
                                  ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              - exemplar         = true
                              - expr             = "sum(rate(stored_items{}[10m]))"
                              + expression       = ""
                              - legendFormat     = "stored items"
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "CPUUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              ~ refId            = "A" -> "CPU_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                          + {
                              + alias            = "CPU (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "CPUUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "CPU_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      ~ title         = "Stored Items" -> "CPU Utilization"
                        # (3 unchanged attributes hidden)
                    },
                  ~ {
                      + alert         = {
                          + alertRuleTags       = [
                              + {},
                            ]
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 70,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Mem_Avg",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - Prod - Memory Utilization - Memory utilization is high (over 70)"
                          + name                = "History - Prod - Memory Utilization - Memory Utilization alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      ~ datasource    = {
                          ~ type = "prometheus" -> "cloudwatch"
                          ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                        }
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  + axisSoftMax       = 40
                                  + axisSoftMin       = 0
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  ~ thresholdsStyle   = {
                                      ~ mode = "off" -> "area"
                                    }
                                    # (11 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      + {
                                          + color = "orange"
                                          + value = 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              + unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                          ~ overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Mem_Max"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "dark-purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Mem_Avg"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ gridPos       = {
                          ~ x = 0 -> 12
                          ~ y = 8 -> 1
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              + alias            = "Memory (Max)"
                              ~ datasource       = {
                                  ~ type = "prometheus" -> "cloudwatch"
                                  ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              - exemplar         = true
                              - expr             = "sum(rate(get_queries{}[10m]))"
                              + expression       = ""
                              - legendFormat     = "get queries"
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "MemoryUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              ~ refId            = "A" -> "Mem_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                          + {
                              + alias            = "Memory (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "MemoryUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Mem_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      ~ title         = "Get Queries" -> "Memory Utilization"
                        # (3 unchanged attributes hidden)
                    },
                  ~ {
                      + collapsed     = false
                      ~ datasource    = {
                          ~ type = "prometheus" -> "datasource"
                          ~ uid  = "t6t9OnQ4k" -> "grafana"
                        }
                      - fieldConfig   = {
                          - defaults  = {
                              - color      = {
                                  - mode = "palette-classic"
                                }
                              - custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - axisPlacement     = "auto"
                                  - barAlignment      = 0
                                  - drawStyle         = "line"
                                  - fillOpacity       = 0
                                  - gradientMode      = "none"
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - lineInterpolation = "linear"
                                  - lineWidth         = 1
                                  - pointSize         = 5
                                  - scaleDistribution = {
                                      - type = "linear"
                                    }
                                  - showPoints        = "auto"
                                  - spanNulls         = false
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  - thresholdsStyle   = {
                                      - mode = "off"
                                    }
                                }
                              - mappings   = []
                              - thresholds = {
                                  - mode  = "absolute"
                                  - steps = [
                                      - {
                                          - color = "green"
                                          - value = null
                                        },
                                    ]
                                }
                            }
                          - overrides = []
                        }
                      ~ gridPos       = {
                          ~ h = 8 -> 1
                          ~ w = 12 -> 24
                          ~ x = 12 -> 0
                          ~ y = 8 -> 9
                        }
                      - links         = []
                      - options       = {
                          - legend  = {
                              - calcs       = []
                              - displayMode = "list"
                              - placement   = "bottom"
                              - showLegend  = true
                            }
                          - tooltip = {
                              - mode = "multi"
                              - sort = "none"
                            }
                        }
                      - pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              ~ datasource   = {
                                  ~ type = "prometheus" -> "datasource"
                                  ~ uid  = "t6t9OnQ4k" -> "grafana"
                                }
                              - exemplar     = true
                              - expr         = "sum(rate(served_items{}[10m]))"
                              - legendFormat = "served items"
                              - refId        = "A"
                            },
                        ]
                      ~ title         = "Served Items" -> "History"
                      ~ type          = "timeseries" -> "row"
                    },
                  ~ {
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ gridPos       = {
                          ~ h = 7 -> 8
                          ~ y = 16 -> 10
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ expr         = "sum(rate(cached_registrations{}[10m]))" -> "sum(rate(received_items{}[10m]))"
                              ~ legendFormat = "cached registrations" -> "received items"
                                # (3 unchanged attributes hidden)
                            },
                          - {
                              - datasource   = {
                                  - type = "prometheus"
                                  - uid  = "t6t9OnQ4k"
                                }
                              - exemplar     = true
                              - expr         = "sum(rate(fetched_registrations{}[10m]))"
                              - legendFormat = "fetched registrations"
                              - refId        = "B"
                            },
                        ]
                      ~ title         = "Registration Lookups" -> "Received Items per Hour"
                        # (4 unchanged attributes hidden)
                    },
                  ~ {
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ gridPos       = {
                          ~ h = 7 -> 8
                          ~ y = 16 -> 10
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              - editorMode   = "code"
                              ~ expr         = "sum(rate(register{}[10m]))" -> "sum(rate(stored_items{}[10m]))"
                              ~ legendFormat = "registrations" -> "stored items"
                              - range        = true
                                # (3 unchanged attributes hidden)
                            },
                        ]
                      ~ title         = "Registrations" -> "Stored Items per Hour"
                        # (4 unchanged attributes hidden)
                    },
                  + {
                      + datasource    = {
                          + type = "prometheus"
                          + uid  = "t6t9OnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 12
                          + x = 0
                          + y = 18
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(get_queries{}[10m]))"
                              + legendFormat = "get queries"
                              + refId        = "A"
                            },
                        ]
                      + title         = "Get Queries per Hour"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "prometheus"
                          + uid  = "t6t9OnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 12
                          + x = 12
                          + y = 18
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(served_items{}[10m]))"
                              + legendFormat = "served items"
                              + refId        = "A"
                            },
                        ]
                      + title         = "Served Items per Hour"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "prometheus"
                          + uid  = "t6t9OnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 24
                          + x = 0
                          + y = 26
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(cached_registrations{}[10m]))"
                              + legendFormat = "cached registrations"
                              + refId        = "A"
                            },
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(fetched_registrations{}[10m]))"
                              + legendFormat = "fetched registrations"
                              + refId        = "B"
                            },
                        ]
                      + title         = "Registrations per Hour"
                      + type          = "timeseries"
                    },
                  + {
                      + collapsed  = false
                      + datasource = {
                          + type = "datasource"
                          + uid  = "grafana"
                        }
                      + gridPos    = {
                          + h = 1
                          + w = 24
                          + x = 0
                          + y = 34
                        }
                      + targets    = [
                          + {
                              + datasource = {
                                  + type = "datasource"
                                  + uid  = "grafana"
                                }
                            },
                        ]
                      + title      = "Load Balancer"
                      + type       = "row"
                    },
                  + {
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 5
                                  + axisSoftMin       = 0
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 12
                          + x = 0
                          + y = 35
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "eu-central-1"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + TargetGroup = "targetgroup/walletconnect-prod-history/78b4a2bb7695306a"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "HealthyHostCount"
                              + metricQueryType  = 1
                              + namespace        = "AWS/NetworkELB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "A"
                              + region           = "default"
                              + sql              = {
                                  + from   = {
                                      + property = {
                                          + name = "AWS/NetworkELB"
                                          + type = "string"
                                        }
                                      + type     = "property"
                                    }
                                  + select = {
                                      + name       = "MAX"
                                      + parameters = [
                                          + {
                                              + name = "HealthyHostCount"
                                              + type = "functionParameter"
                                            },
                                        ]
                                      + type       = "function"
                                    }
                                  + where  = {
                                      + expressions = [
                                          + {
                                              + operator = {
                                                  + name  = "="
                                                  + value = "app/walletconnect-prod-history/c55de72490c4a039"
                                                }
                                              + property = {
                                                  + name = "LoadBalancer"
                                                  + type = "string"
                                                }
                                              + type     = "operator"
                                            },
                                        ]
                                      + type        = "and"
                                    }
                                }
                              + sqlExpression    = "SELECT MAX(HealthyHostCount) FROM \"AWS/NetworkELB\" WHERE LoadBalancer = 'app/walletconnect-prod-history/c55de72490c4a039'"
                              + statistic        = "Maximum"
                            },
                        ]
                      + title         = "Healthy Hosts"
                      + type          = "timeseries"
                    },
                  + {
                      + collapsed  = false
                      + datasource = {
                          + type = "datasource"
                          + uid  = "grafana"
                        }
                      + gridPos    = {
                          + h = 1
                          + w = 24
                          + x = 0
                          + y = 43
                        }
                      + targets    = [
                          + {
                              + datasource = {
                                  + type = "datasource"
                                  + uid  = "grafana"
                                }
                            },
                        ]
                      + title      = "Database"
                      + type       = "row"
                    },
                  + {
                      + alert         = {
                          + alertRuleTags       = {}
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 50,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "or"
                                    }
                                  + query     = {
                                      + params = [
                                          + "CPU_Max",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - prod DocumentDB CPU alert"
                          + name                = "History - prod DocumentDB CPU alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 40
                                  + axisSoftMin       = 0
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "area"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                      + {
                                          + color = "orange"
                                          + value = 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                }
                              + unit       = "percent"
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 0
                          + y = 44
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "CPU (Max)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "CPUUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "CPU_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                          + {
                              + alias            = "CPU (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "CPUUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "CPU_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      + title         = "CPU Utilization"
                      + type          = "timeseries"
                    },
                  + {
                      + alert         = {
                          + alertRuleTags       = {}
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 4000000000,
                                        ]
                                      + type   = "lt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Mem_Avg",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "min"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - prod DocumentDB Freeable Memory"
                          + name                = "History - prod DocumentDB Freeable Memory Alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 16000000000
                                  + axisSoftMin       = 0
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "area"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + steps = [
                                      + {
                                          + color = "red"
                                          + value = null
                                        },
                                      + {
                                          + color = "green"
                                          + value = 4000000000
                                        },
                                    ]
                                }
                              + unit       = "decbytes"
                            }
                          + overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Mem_Min"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "dark-purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Mem_Avg"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                    
...

Action: pull_request

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/afaf42d3-8752-4a48-8588-847544892ee4/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # module.monitoring.data.jsonnet_file.dashboard will be read during apply
  # (config refers to values not yet known)
 <= data "jsonnet_file" "dashboard" {
      + ext_str  = {
          + "cloudwatch_uid"   = (known after apply)
          + "dashboard_title"  = "staging - history"
          + "dashboard_uid"    = "staging-history"
          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"
          + "ecs_service_name" = "walletconnect-staging-history-service"
          + "environment"      = "staging"
          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"
          + "notifications"    = jsonencode([])
          + "prometheus_uid"   = (known after apply)
          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"
        }
      + id       = (known after apply)
      + rendered = (known after apply)
      + source   = "monitoring/dashboard.jsonnet"
    }

  # module.monitoring.grafana_dashboard.main will be created
  + resource "grafana_dashboard" "main" {
      + config_json  = (known after apply)
      + dashboard_id = (known after apply)
      + id           = (known after apply)
      + message      = "Updated by Terraform"
      + overwrite    = true
      + slug         = (known after apply)
      + uid          = (known after apply)
      + url          = (known after apply)
      + version      = (known after apply)
    }

  # module.monitoring.grafana_data_source.cloudwatch will be created
  + resource "grafana_data_source" "cloudwatch" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + defaultRegion = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"
      + type               = "cloudwatch"
      + uid                = (known after apply)
    }

  # module.monitoring.grafana_data_source.prometheus will be created
  + resource "grafana_data_source" "prometheus" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + httpMethod    = "GET"
              + manageAlerts  = false
              + sigV4Auth     = true
              + sigV4AuthType = "ec2_iam_role"
              + sigV4Region   = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-amp"
      + type               = "prometheus"
      + uid                = (known after apply)
      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"
    }

Plan: 3 to add, 0 to change, 0 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A  + create%0A <= read (data resources)%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.data.jsonnet_file.dashboard will be read during apply%0A  # (config refers to values not yet known)%0A <= data "jsonnet_file" "dashboard" {%0A      + ext_str  = {%0A          + "cloudwatch_uid"   = (known after apply)%0A          + "dashboard_title"  = "staging - history"%0A          + "dashboard_uid"    = "staging-history"%0A          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"%0A          + "ecs_service_name" = "walletconnect-staging-history-service"%0A          + "environment"      = "staging"%0A          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"%0A          + "notifications"    = jsonencode([])%0A          + "prometheus_uid"   = (known after apply)%0A          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"%0A        }%0A      + id       = (known after apply)%0A      + rendered = (known after apply)%0A      + source   = "monitoring/dashboard.jsonnet"%0A    }%0A%0A  # module.monitoring.grafana_dashboard.main will be created%0A  + resource "grafana_dashboard" "main" {%0A      + config_json  = (known after apply)%0A      + dashboard_id = (known after apply)%0A      + id           = (known after apply)%0A      + message      = "Updated by Terraform"%0A      + overwrite    = true%0A      + slug         = (known after apply)%0A      + uid          = (known after apply)%0A      + url          = (known after apply)%0A      + version      = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.cloudwatch will be created%0A  + resource "grafana_data_source" "cloudwatch" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + defaultRegion = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"%0A      + type               = "cloudwatch"%0A      + uid                = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.prometheus will be created%0A  + resource "grafana_data_source" "prometheus" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + httpMethod    = "GET"%0A              + manageAlerts  = false%0A              + sigV4Auth     = true%0A              + sigV4AuthType = "ec2_iam_role"%0A              + sigV4Region   = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-amp"%0A      + type               = "prometheus"%0A      + uid                = (known after apply)%0A      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"%0A    }%0A%0APlan: 3 to add, 0 to change, 0 to destroy.%0A
::debug::stderr: 
::debug::exitcode: 0

Action: pull_request

@xav xav temporarily deployed to infra/staging June 7, 2023 13:54 — with GitHub Actions Inactive
@xav xav temporarily deployed to infra/prod June 7, 2023 13:54 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/589df9cc-9ec4-4716-a9ce-544c063cef19/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # aws_prometheus_workspace.prometheus will be updated in-place
  ~ resource "aws_prometheus_workspace" "prometheus" {
        id                  = "ws-86adde76-f99a-4773-847b-00e9b4384c0a"
      ~ tags                = {
          - "application" = "history" -> null
        }
      ~ tags_all            = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.dns.aws_acm_certificate.domain_certificate will be updated in-place
  ~ resource "aws_acm_certificate" "domain_certificate" {
        id                        = "arn:aws:acm:eu-central-1:898587786287:certificate/44749651-e494-45f7-85e2-2a3d28035b8c"
      ~ tags                      = {
          - "application" = "history" -> null
        }
      ~ tags_all                  = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (14 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_cloudwatch_log_group.cluster_logs will be updated in-place
  ~ resource "aws_cloudwatch_log_group" "cluster_logs" {
        id                = "walletconnect-staging-history_logs"
        name              = "walletconnect-staging-history_logs"
      ~ tags              = {
          - "application" = "history" -> null
        }
      ~ tags_all          = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.ecs.aws_ecs_cluster.app_cluster will be updated in-place
  ~ resource "aws_ecs_cluster" "app_cluster" {
        id                 = "arn:aws:ecs:eu-central-1:898587786287:cluster/walletconnect-staging-history"
        name               = "walletconnect-staging-history"
      ~ tags               = {
          - "application" = "history" -> null
        }
      ~ tags_all           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (2 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.ecs.aws_ecs_service.app_service will be updated in-place
  ~ resource "aws_ecs_service" "app_service" {
        id                                 = "arn:aws:ecs:eu-central-1:898587786287:service/walletconnect-staging-history/walletconnect-staging-history-service"
        name                               = "walletconnect-staging-history-service"
      ~ tags                               = {
          - "application" = "history" -> null
        }
      ~ tags_all                           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.ecs.aws_ecs_task_definition.app_task_definition will be updated in-place
  ~ resource "aws_ecs_task_definition" "app_task_definition" {
        id                       = "walletconnect-staging-history"
      ~ tags                     = {
          - "application" = "history" -> null
        }
      ~ tags_all                 = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_iam_policy.otel will be updated in-place
  ~ resource "aws_iam_policy" "otel" {
        id        = "arn:aws:iam::898587786287:policy/walletconnect-staging-history-otel"
        name      = "walletconnect-staging-history-otel"
      ~ tags      = {
          - "application" = "history" -> null
        }
      ~ tags_all  = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)
    }

  # module.ecs.aws_iam_role.ecs_task_execution_role will be updated in-place
  ~ resource "aws_iam_role" "ecs_task_execution_role" {
        id                    = "walletconnect-staging-history-ecs-task-execution-role"
        name                  = "walletconnect-staging-history-ecs-task-execution-role"
      ~ tags                  = {
          - "application" = "history" -> null
        }
      ~ tags_all              = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (9 unchanged attributes hidden)
    }

  # module.ecs.aws_lb.application_load_balancer will be updated in-place
  ~ resource "aws_lb" "application_load_balancer" {
        id                                          = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:loadbalancer/app/walletconnect-staging-history/60b171566a3acf0a"
        name                                        = "walletconnect-staging-history"
      ~ tags                                        = {
          - "application" = "history" -> null
        }
      ~ tags_all                                    = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (21 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.ecs.aws_lb_listener.listener will be updated in-place
  ~ resource "aws_lb_listener" "listener" {
        id                = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:listener/app/walletconnect-staging-history/60b171566a3acf0a/6d09b07767617a8d"
      ~ tags              = {
          - "application" = "history" -> null
        }
      ~ tags_all          = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_lb_listener.listener-http will be updated in-place
  ~ resource "aws_lb_listener" "listener-http" {
        id                = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:listener/app/walletconnect-staging-history/60b171566a3acf0a/51a5940ccb2b0d6d"
      ~ tags              = {
          - "application" = "history" -> null
        }
      ~ tags_all          = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_lb_target_group.target_group will be updated in-place
  ~ resource "aws_lb_target_group" "target_group" {
        id                                 = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:targetgroup/walletconnect-staging-history/eadfa45347d00c71"
        name                               = "walletconnect-staging-history"
      ~ tags                               = {
          - "application" = "history" -> null
        }
      ~ tags_all                           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.ecs.aws_security_group.app_ingress will be updated in-place
  ~ resource "aws_security_group" "app_ingress" {
        id                     = "sg-07d2c39636cd7d550"
        name                   = "walletconnect-staging-history-ingress-to-app"
      ~ tags                   = {
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.ecs.aws_security_group.lb_ingress will be updated in-place
  ~ resource "aws_security_group" "lb_ingress" {
        id                     = "sg-0ff0dd35001fd3826"
        name                   = "walletconnect-staging-history-lb-ingress"
      ~ tags                   = {
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.history_docdb.aws_docdb_cluster.docdb_primary will be updated in-place
  ~ resource "aws_docdb_cluster" "docdb_primary" {
        id                              = "walletconnect-staging-history-history-db-primary"
      ~ tags                            = {
          - "application" = "history" -> null
        }
      ~ tags_all                        = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (24 unchanged attributes hidden)
    }

  # module.history_docdb.aws_docdb_cluster_instance.docdb_instances[0] will be updated in-place
  ~ resource "aws_docdb_cluster_instance" "docdb_instances" {
        id                           = "walletconnect-staging-history-history-db-primary-instance-0"
      ~ tags                         = {
          - "application" = "history" -> null
        }
      ~ tags_all                     = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (20 unchanged attributes hidden)
    }

  # module.history_docdb.aws_docdb_subnet_group.private_subnets will be updated in-place
  ~ resource "aws_docdb_subnet_group" "private_subnets" {
        id          = "walletconnect-staging-history-history-db-private-subnet-group"
        name        = "walletconnect-staging-history-history-db-private-subnet-group"
      ~ tags        = {
          - "application" = "history" -> null
        }
      ~ tags_all    = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.history_docdb.aws_kms_key.docdb_encryption will be updated in-place
  ~ resource "aws_kms_key" "docdb_encryption" {
        id                                 = "fbd228f2-4579-4aff-b06d-727bafda9266"
      ~ tags                               = {
          - "application" = "history" -> null
        }
      ~ tags_all                           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (9 unchanged attributes hidden)
    }

  # module.history_docdb.aws_secretsmanager_secret.master_password will be updated in-place
  ~ resource "aws_secretsmanager_secret" "master_password" {
        id                             = "arn:aws:secretsmanager:eu-central-1:898587786287:secret:walletconnect-staging-history-history-db-master-password-xJPdBI"
        name                           = "walletconnect-staging-history-history-db-master-password"
      ~ tags                           = {
          - "application" = "history" -> null
        }
      ~ tags_all                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)
    }

  # module.history_docdb.aws_security_group.service_security_group will be updated in-place
  ~ resource "aws_security_group" "service_security_group" {
        id                     = "sg-061696a56aedc4008"
        name                   = "walletconnect-staging-history-history-db-service"
      ~ tags                   = {
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.monitoring.data.jsonnet_file.dashboard will be read during apply
  # (config refers to values not yet known)
 <= data "jsonnet_file" "dashboard" {
      + ext_str  = {
          + "cloudwatch_uid"   = (known after apply)
          + "dashboard_title"  = "staging - history"
          + "dashboard_uid"    = "staging-history"
          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"
          + "ecs_service_name" = "walletconnect-staging-history-service"
          + "environment"      = "staging"
          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"
          + "notifications"    = jsonencode([])
          + "prometheus_uid"   = (known after apply)
          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"
        }
      + id       = (known after apply)
      + rendered = (known after apply)
      + source   = "monitoring/dashboard.jsonnet"
    }

  # module.monitoring.grafana_dashboard.main will be created
  + resource "grafana_dashboard" "main" {
      + config_json  = (known after apply)
      + dashboard_id = (known after apply)
      + id           = (known after apply)
      + message      = "Updated by Terraform"
      + overwrite    = true
      + slug         = (known after apply)
      + uid          = (known after apply)
      + url          = (known after apply)
      + version      = (known after apply)
    }

  # module.monitoring.grafana_data_source.cloudwatch will be created
  + resource "grafana_data_source" "cloudwatch" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + defaultRegion = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"
      + type               = "cloudwatch"
      + uid                = (known after apply)
    }

  # module.monitoring.grafana_data_source.prometheus will be created
  + resource "grafana_data_source" "prometheus" {
      + access_mode        = "proxy"
      + basic_auth_enabled = false
      + id                 = (known after apply)
      + is_default         = false
      + json_data_encoded  = jsonencode(
            {
              + httpMethod    = "GET"
              + manageAlerts  = false
              + sigV4Auth     = true
              + sigV4AuthType = "ec2_iam_role"
              + sigV4Region   = "eu-central-1"
            }
        )
      + name               = "walletconnect-eu-central-1-staging-history-amp"
      + type               = "prometheus"
      + uid                = (known after apply)
      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"
    }

  # module.vpc.aws_default_network_acl.this[0] will be updated in-place
  ~ resource "aws_default_network_acl" "this" {
        id                     = "acl-01dde886ec5b1859c"
      ~ tags                   = {
            "Name"        = "staging-history-default"
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (5 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.vpc.aws_default_route_table.default[0] will be updated in-place
  ~ resource "aws_default_route_table" "default" {
        id                     = "rtb-0a519aa7a80d7137d"
      ~ tags                   = {
            "Name"        = "staging-history-default"
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.vpc.aws_default_security_group.this[0] will be updated in-place
  ~ resource "aws_default_security_group" "this" {
        id                     = "sg-094501bf8977112e2"
        name                   = "default"
      ~ tags                   = {
            "Name"        = "staging-history-default"
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.vpc.aws_eip.nat[0] will be updated in-place
  ~ resource "aws_eip" "nat" {
        id                   = "eipalloc-00d85da85a5ee9b92"
      ~ tags                 = {
            "Name"        = "staging-history-eu-central-1a"
          - "application" = "history" -> null
        }
      ~ tags_all             = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (11 unchanged attributes hidden)
    }

  # module.vpc.aws_internet_gateway.this[0] will be updated in-place
  ~ resource "aws_internet_gateway" "this" {
        id       = "igw-00bec4bdcd8f0828f"
      ~ tags     = {
            "Name"        = "staging-history"
          - "application" = "history" -> null
        }
      ~ tags_all = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.vpc.aws_nat_gateway.this[0] will be updated in-place
  ~ resource "aws_nat_gateway" "this" {
        id                   = "nat-0f22103e67a0f8858"
      ~ tags                 = {
            "Name"        = "staging-history-eu-central-1a"
          - "application" = "history" -> null
        }
      ~ tags_all             = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.vpc.aws_route_table.private[0] will be updated in-place
  ~ resource "aws_route_table" "private" {
        id               = "rtb-095a8e9e1e84e5423"
      ~ tags             = {
            "Name"        = "staging-history-private"
          - "application" = "history" -> null
        }
      ~ tags_all         = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (5 unchanged attributes hidden)
    }

  # module.vpc.aws_route_table.public[0] will be updated in-place
  ~ resource "aws_route_table" "public" {
        id               = "rtb-02ad02a1d7bd626c2"
      ~ tags             = {
            "Name"        = "staging-history-public"
          - "application" = "history" -> null
        }
      ~ tags_all         = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (5 unchanged attributes hidden)
    }

  # module.vpc.aws_subnet.private[0] will be updated in-place
  ~ resource "aws_subnet" "private" {
        id                                             = "subnet-0a54f4fbc62a07f83"
      ~ tags                                           = {
            "Name"        = "staging-history-private-eu-central-1a"
            "Visibility"  = "private"
          - "application" = "history" -> null
        }
      ~ tags_all                                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (5 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)
    }

  # module.vpc.aws_subnet.private[1] will be updated in-place
  ~ resource "aws_subnet" "private" {
        id                                             = "subnet-0be8f48e6b047db7c"
      ~ tags                                           = {
            "Name"        = "staging-history-private-eu-central-1b"
            "Visibility"  = "private"
          - "application" = "history" -> null
        }
      ~ tags_all                                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (5 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)
    }

  # module.vpc.aws_subnet.private[2] will be updated in-place
  ~ resource "aws_subnet" "private" {
        id                                             = "subnet-06274970559b4ec00"
      ~ tags                                           = {
            "Name"        = "staging-history-private-eu-central-1c"
            "Visibility"  = "private"
          - "application" = "history" -> null
        }
      ~ tags_all                                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (5 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)
    }

  # module.vpc.aws_subnet.public[0] will be updated in-place
  ~ resource "aws_subnet" "public" {
        id                                             = "subnet-04be3d082ab96a054"
      ~ tags                                           = {
            "Name"        = "staging-history-public-eu-central-1a"
            "Visibility"  = "public"
          - "application" = "history" -> null
        }
      ~ tags_all                                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (5 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)
    }

  # module.vpc.aws_subnet.public[1] will be updated in-place
  ~ resource "aws_subnet" "public" {
        id                                             = "subnet-09aee6302088ed50c"
      ~ tags                                           = {
            "Name"        = "staging-history-public-eu-central-1b"
            "Visibility"  = "public"
          - "application" = "history" -> null
        }
      ~ tags_all                                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (5 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)
    }

  # module.vpc.aws_subnet.public[2] will be updated in-place
  ~ resource "aws_subnet" "public" {
        id                                             = "subnet-0b63dd9c124ced7c6"
      ~ tags                                           = {
            "Name"        = "staging-history-public-eu-central-1c"
            "Visibility"  = "public"
          - "application" = "history" -> null
        }
      ~ tags_all                                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (5 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)
    }

  # module.vpc.aws_vpc.this[0] will be updated in-place
  ~ resource "aws_vpc" "this" {
        id                                   = "vpc-004131c2efe4d188f"
      ~ tags                                 = {
            "Name"        = "staging-history"
          - "application" = "history" -> null
        }
      ~ tags_all                             = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (16 unchanged attributes hidden)
    }

Plan: 3 to add, 35 to change, 0 to destroy.
::debug::Terraform exited with code 0.
::debug::stdout: %0ATerraform used the selected providers to generate the following execution%0Aplan. Resource actions are indicated with the following symbols:%0A  + create%0A  ~ update in-place%0A <= read (data resources)%0A%0ATerraform will perform the following actions:%0A%0A  # aws_prometheus_workspace.prometheus will be updated in-place%0A  ~ resource "aws_prometheus_workspace" "prometheus" {%0A        id                  = "ws-86adde76-f99a-4773-847b-00e9b4384c0a"%0A      ~ tags                = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all            = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (3 unchanged attributes hidden)%0A    }%0A%0A  # module.dns.aws_acm_certificate.domain_certificate will be updated in-place%0A  ~ resource "aws_acm_certificate" "domain_certificate" {%0A        id                        = "arn:aws:acm:eu-central-1:898587786287:certificate/44749651-e494-45f7-85e2-2a3d28035b8c"%0A      ~ tags                      = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                  = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (14 unchanged attributes hidden)%0A%0A        # (1 unchanged block hidden)%0A    }%0A%0A  # module.ecs.aws_cloudwatch_log_group.cluster_logs will be updated in-place%0A  ~ resource "aws_cloudwatch_log_group" "cluster_logs" {%0A        id                = "walletconnect-staging-history_logs"%0A        name              = "walletconnect-staging-history_logs"%0A      ~ tags              = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all          = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (3 unchanged attributes hidden)%0A    }%0A%0A  # module.ecs.aws_ecs_cluster.app_cluster will be updated in-place%0A  ~ resource "aws_ecs_cluster" "app_cluster" {%0A        id                 = "arn:aws:ecs:eu-central-1:898587786287:cluster/walletconnect-staging-history"%0A        name               = "walletconnect-staging-history"%0A      ~ tags               = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all           = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (2 unchanged attributes hidden)%0A%0A        # (2 unchanged blocks hidden)%0A    }%0A%0A  # module.ecs.aws_ecs_service.app_service will be updated in-place%0A  ~ resource "aws_ecs_service" "app_service" {%0A        id                                 = "arn:aws:ecs:eu-central-1:898587786287:service/walletconnect-staging-history/walletconnect-staging-history-service"%0A        name                               = "walletconnect-staging-history-service"%0A      ~ tags                               = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                           = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A%0A        # (4 unchanged blocks hidden)%0A    }%0A%0A  # module.ecs.aws_ecs_task_definition.app_task_definition will be updated in-place%0A  ~ resource "aws_ecs_task_definition" "app_task_definition" {%0A        id                       = "walletconnect-staging-history"%0A      ~ tags                     = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                 = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (12 unchanged attributes hidden)%0A%0A        # (1 unchanged block hidden)%0A    }%0A%0A  # module.ecs.aws_iam_policy.otel will be updated in-place%0A  ~ resource "aws_iam_policy" "otel" {%0A        id        = "arn:aws:iam::898587786287:policy/walletconnect-staging-history-otel"%0A        name      = "walletconnect-staging-history-otel"%0A      ~ tags      = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all  = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (4 unchanged attributes hidden)%0A    }%0A%0A  # module.ecs.aws_iam_role.ecs_task_execution_role will be updated in-place%0A  ~ resource "aws_iam_role" "ecs_task_execution_role" {%0A        id                    = "walletconnect-staging-history-ecs-task-execution-role"%0A        name                  = "walletconnect-staging-history-ecs-task-execution-role"%0A      ~ tags                  = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all              = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (9 unchanged attributes hidden)%0A    }%0A%0A  # module.ecs.aws_lb.application_load_balancer will be updated in-place%0A  ~ resource "aws_lb" "application_load_balancer" {%0A        id                                          = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:loadbalancer/app/walletconnect-staging-history/60b171566a3acf0a"%0A        name                                        = "walletconnect-staging-history"%0A      ~ tags                                        = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                    = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (21 unchanged attributes hidden)%0A%0A        # (4 unchanged blocks hidden)%0A    }%0A%0A  # module.ecs.aws_lb_listener.listener will be updated in-place%0A  ~ resource "aws_lb_listener" "listener" {%0A        id                = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:listener/app/walletconnect-staging-history/60b171566a3acf0a/6d09b07767617a8d"%0A      ~ tags              = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all          = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (6 unchanged attributes hidden)%0A%0A        # (1 unchanged block hidden)%0A    }%0A%0A  # module.ecs.aws_lb_listener.listener-http will be updated in-place%0A  ~ resource "aws_lb_listener" "listener-http" {%0A        id                = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:listener/app/walletconnect-staging-history/60b171566a3acf0a/51a5940ccb2b0d6d"%0A      ~ tags              = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all          = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (4 unchanged attributes hidden)%0A%0A        # (1 unchanged block hidden)%0A    }%0A%0A  # module.ecs.aws_lb_target_group.target_group will be updated in-place%0A  ~ resource "aws_lb_target_group" "target_group" {%0A        id                                 = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:targetgroup/walletconnect-staging-history/eadfa45347d00c71"%0A        name                               = "walletconnect-staging-history"%0A      ~ tags                               = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                           = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A%0A        # (3 unchanged blocks hidden)%0A    }%0A%0A  # module.ecs.aws_security_group.app_ingress will be updated in-place%0A  ~ resource "aws_security_group" "app_ingress" {%0A        id                     = "sg-07d2c39636cd7d550"%0A        name                   = "walletconnect-staging-history-ingress-to-app"%0A      ~ tags                   = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all               = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (7 unchanged attributes hidden)%0A    }%0A%0A  # module.ecs.aws_security_group.lb_ingress will be updated in-place%0A  ~ resource "aws_security_group" "lb_ingress" {%0A        id                     = "sg-0ff0dd35001fd3826"%0A        name                   = "walletconnect-staging-history-lb-ingress"%0A      ~ tags                   = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all               = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (7 unchanged attributes hidden)%0A    }%0A%0A  # module.history_docdb.aws_docdb_cluster.docdb_primary will be updated in-place%0A  ~ resource "aws_docdb_cluster" "docdb_primary" {%0A        id                              = "walletconnect-staging-history-history-db-primary"%0A      ~ tags                            = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                        = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (24 unchanged attributes hidden)%0A    }%0A%0A  # module.history_docdb.aws_docdb_cluster_instance.docdb_instances[0] will be updated in-place%0A  ~ resource "aws_docdb_cluster_instance" "docdb_instances" {%0A        id                           = "walletconnect-staging-history-history-db-primary-instance-0"%0A      ~ tags                         = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                     = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (20 unchanged attributes hidden)%0A    }%0A%0A  # module.history_docdb.aws_docdb_subnet_group.private_subnets will be updated in-place%0A  ~ resource "aws_docdb_subnet_group" "private_subnets" {%0A        id          = "walletconnect-staging-history-history-db-private-subnet-group"%0A        name        = "walletconnect-staging-history-history-db-private-subnet-group"%0A      ~ tags        = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all    = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (3 unchanged attributes hidden)%0A    }%0A%0A  # module.history_docdb.aws_kms_key.docdb_encryption will be updated in-place%0A  ~ resource "aws_kms_key" "docdb_encryption" {%0A        id                                 = "fbd228f2-4579-4aff-b06d-727bafda9266"%0A      ~ tags                               = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                           = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (9 unchanged attributes hidden)%0A    }%0A%0A  # module.history_docdb.aws_secretsmanager_secret.master_password will be updated in-place%0A  ~ resource "aws_secretsmanager_secret" "master_password" {%0A        id                             = "arn:aws:secretsmanager:eu-central-1:898587786287:secret:walletconnect-staging-history-history-db-master-password-xJPdBI"%0A        name                           = "walletconnect-staging-history-history-db-master-password"%0A      ~ tags                           = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (4 unchanged attributes hidden)%0A    }%0A%0A  # module.history_docdb.aws_security_group.service_security_group will be updated in-place%0A  ~ resource "aws_security_group" "service_security_group" {%0A        id                     = "sg-061696a56aedc4008"%0A        name                   = "walletconnect-staging-history-history-db-service"%0A      ~ tags                   = {%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all               = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (7 unchanged attributes hidden)%0A    }%0A%0A  # module.monitoring.data.jsonnet_file.dashboard will be read during apply%0A  # (config refers to values not yet known)%0A <= data "jsonnet_file" "dashboard" {%0A      + ext_str  = {%0A          + "cloudwatch_uid"   = (known after apply)%0A          + "dashboard_title"  = "staging - history"%0A          + "dashboard_uid"    = "staging-history"%0A          + "docdb_cluster_id" = "walletconnect-staging-history-history-db-primary"%0A          + "ecs_service_name" = "walletconnect-staging-history-service"%0A          + "environment"      = "staging"%0A          + "load_balancer"    = "app/walletconnect-staging-history/60b171566a3acf0a"%0A          + "notifications"    = jsonencode([])%0A          + "prometheus_uid"   = (known after apply)%0A          + "target_group"     = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"%0A        }%0A      + id       = (known after apply)%0A      + rendered = (known after apply)%0A      + source   = "monitoring/dashboard.jsonnet"%0A    }%0A%0A  # module.monitoring.grafana_dashboard.main will be created%0A  + resource "grafana_dashboard" "main" {%0A      + config_json  = (known after apply)%0A      + dashboard_id = (known after apply)%0A      + id           = (known after apply)%0A      + message      = "Updated by Terraform"%0A      + overwrite    = true%0A      + slug         = (known after apply)%0A      + uid          = (known after apply)%0A      + url          = (known after apply)%0A      + version      = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.cloudwatch will be created%0A  + resource "grafana_data_source" "cloudwatch" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + defaultRegion = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-cloudwatch"%0A      + type               = "cloudwatch"%0A      + uid                = (known after apply)%0A    }%0A%0A  # module.monitoring.grafana_data_source.prometheus will be created%0A  + resource "grafana_data_source" "prometheus" {%0A      + access_mode        = "proxy"%0A      + basic_auth_enabled = false%0A      + id                 = (known after apply)%0A      + is_default         = false%0A      + json_data_encoded  = jsonencode(%0A            {%0A              + httpMethod    = "GET"%0A              + manageAlerts  = false%0A              + sigV4Auth     = true%0A              + sigV4AuthType = "ec2_iam_role"%0A              + sigV4Region   = "eu-central-1"%0A            }%0A        )%0A      + name               = "walletconnect-eu-central-1-staging-history-amp"%0A      + type               = "prometheus"%0A      + uid                = (known after apply)%0A      + url                = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-86adde76-f99a-4773-847b-00e9b4384c0a/"%0A    }%0A%0A  # module.vpc.aws_default_network_acl.this[0] will be updated in-place%0A  ~ resource "aws_default_network_acl" "this" {%0A        id                     = "acl-01dde886ec5b1859c"%0A      ~ tags                   = {%0A            "Name"        = "staging-history-default"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all               = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (5 unchanged attributes hidden)%0A%0A        # (4 unchanged blocks hidden)%0A    }%0A%0A  # module.vpc.aws_default_route_table.default[0] will be updated in-place%0A  ~ resource "aws_default_route_table" "default" {%0A        id                     = "rtb-0a519aa7a80d7137d"%0A      ~ tags                   = {%0A            "Name"        = "staging-history-default"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all               = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (6 unchanged attributes hidden)%0A%0A        # (1 unchanged block hidden)%0A    }%0A%0A  # module.vpc.aws_default_security_group.this[0] will be updated in-place%0A  ~ resource "aws_default_security_group" "this" {%0A        id                     = "sg-094501bf8977112e2"%0A        name                   = "default"%0A      ~ tags                   = {%0A            "Name"        = "staging-history-default"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all               = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (7 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_eip.nat[0] will be updated in-place%0A  ~ resource "aws_eip" "nat" {%0A        id                   = "eipalloc-00d85da85a5ee9b92"%0A      ~ tags                 = {%0A            "Name"        = "staging-history-eu-central-1a"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all             = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (11 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_internet_gateway.this[0] will be updated in-place%0A  ~ resource "aws_internet_gateway" "this" {%0A        id       = "igw-00bec4bdcd8f0828f"%0A      ~ tags     = {%0A            "Name"        = "staging-history"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (3 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_nat_gateway.this[0] will be updated in-place%0A  ~ resource "aws_nat_gateway" "this" {%0A        id                   = "nat-0f22103e67a0f8858"%0A      ~ tags                 = {%0A            "Name"        = "staging-history-eu-central-1a"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all             = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (7 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_route_table.private[0] will be updated in-place%0A  ~ resource "aws_route_table" "private" {%0A        id               = "rtb-095a8e9e1e84e5423"%0A      ~ tags             = {%0A            "Name"        = "staging-history-private"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all         = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (5 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_route_table.public[0] will be updated in-place%0A  ~ resource "aws_route_table" "public" {%0A        id               = "rtb-02ad02a1d7bd626c2"%0A      ~ tags             = {%0A            "Name"        = "staging-history-public"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all         = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (5 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_subnet.private[0] will be updated in-place%0A  ~ resource "aws_subnet" "private" {%0A        id                                             = "subnet-0a54f4fbc62a07f83"%0A      ~ tags                                           = {%0A            "Name"        = "staging-history-private-eu-central-1a"%0A            "Visibility"  = "private"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (5 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_subnet.private[1] will be updated in-place%0A  ~ resource "aws_subnet" "private" {%0A        id                                             = "subnet-0be8f48e6b047db7c"%0A      ~ tags                                           = {%0A            "Name"        = "staging-history-private-eu-central-1b"%0A            "Visibility"  = "private"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (5 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_subnet.private[2] will be updated in-place%0A  ~ resource "aws_subnet" "private" {%0A        id                                             = "subnet-06274970559b4ec00"%0A      ~ tags                                           = {%0A            "Name"        = "staging-history-private-eu-central-1c"%0A            "Visibility"  = "private"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (5 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_subnet.public[0] will be updated in-place%0A  ~ resource "aws_subnet" "public" {%0A        id                                             = "subnet-04be3d082ab96a054"%0A      ~ tags                                           = {%0A            "Name"        = "staging-history-public-eu-central-1a"%0A            "Visibility"  = "public"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (5 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_subnet.public[1] will be updated in-place%0A  ~ resource "aws_subnet" "public" {%0A        id                                             = "subnet-09aee6302088ed50c"%0A      ~ tags                                           = {%0A            "Name"        = "staging-history-public-eu-central-1b"%0A            "Visibility"  = "public"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (5 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_subnet.public[2] will be updated in-place%0A  ~ resource "aws_subnet" "public" {%0A        id                                             = "subnet-0b63dd9c124ced7c6"%0A      ~ tags                                           = {%0A            "Name"        = "staging-history-public-eu-central-1c"%0A            "Visibility"  = "public"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                                       = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (5 unchanged elements hidden)%0A        }%0A        # (15 unchanged attributes hidden)%0A    }%0A%0A  # module.vpc.aws_vpc.this[0] will be updated in-place%0A  ~ resource "aws_vpc" "this" {%0A        id                                   = "vpc-004131c2efe4d188f"%0A      ~ tags                                 = {%0A            "Name"        = "staging-history"%0A          - "application" = "history" -> null%0A        }%0A      ~ tags_all                             = {%0A          + "Application" = "history"%0A          - "application" = "history" -> null%0A            # (4 unchanged elements hidden)%0A        }%0A        # (16 unchanged attributes hidden)%0A    }%0A%0APlan: 3 to add, 35 to change, 0 to destroy.%0A
::debug::stderr: 
::debug::exitcode: 0

Action: pull_request

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Show Plan

[command]/home/runner/work/_temp/bddf8e5b-29d3-447b-b961-93fc0f414030/terraform-bin -chdir=terraform show -no-color /tmp/plan.tfplan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_prometheus_workspace.prometheus will be updated in-place
  ~ resource "aws_prometheus_workspace" "prometheus" {
        id                  = "ws-29641597-9b6a-44dd-9f05-e48a94e51f9c"
      ~ tags                = {
          - "application" = "history" -> null
        }
      ~ tags_all            = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.dns.aws_acm_certificate.domain_certificate will be updated in-place
  ~ resource "aws_acm_certificate" "domain_certificate" {
        id                        = "arn:aws:acm:eu-central-1:898587786287:certificate/5030302f-c887-4743-909b-76e57f844a3c"
      ~ tags                      = {
          - "application" = "history" -> null
        }
      ~ tags_all                  = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (14 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_cloudwatch_log_group.cluster_logs will be updated in-place
  ~ resource "aws_cloudwatch_log_group" "cluster_logs" {
        id                = "walletconnect-prod-history_logs"
        name              = "walletconnect-prod-history_logs"
      ~ tags              = {
          - "application" = "history" -> null
        }
      ~ tags_all          = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.ecs.aws_ecs_cluster.app_cluster will be updated in-place
  ~ resource "aws_ecs_cluster" "app_cluster" {
        id                 = "arn:aws:ecs:eu-central-1:898587786287:cluster/walletconnect-prod-history"
        name               = "walletconnect-prod-history"
      ~ tags               = {
          - "application" = "history" -> null
        }
      ~ tags_all           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (2 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.ecs.aws_ecs_service.app_service will be updated in-place
  ~ resource "aws_ecs_service" "app_service" {
        id                                 = "arn:aws:ecs:eu-central-1:898587786287:service/walletconnect-prod-history/walletconnect-prod-history-service"
        name                               = "walletconnect-prod-history-service"
      ~ tags                               = {
          - "application" = "history" -> null
        }
      ~ tags_all                           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.ecs.aws_ecs_task_definition.app_task_definition will be updated in-place
  ~ resource "aws_ecs_task_definition" "app_task_definition" {
        id                       = "walletconnect-prod-history"
      ~ tags                     = {
          - "application" = "history" -> null
        }
      ~ tags_all                 = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_iam_policy.otel will be updated in-place
  ~ resource "aws_iam_policy" "otel" {
        id        = "arn:aws:iam::898587786287:policy/walletconnect-prod-history-otel"
        name      = "walletconnect-prod-history-otel"
      ~ tags      = {
          - "application" = "history" -> null
        }
      ~ tags_all  = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)
    }

  # module.ecs.aws_iam_role.ecs_task_execution_role will be updated in-place
  ~ resource "aws_iam_role" "ecs_task_execution_role" {
        id                    = "walletconnect-prod-history-ecs-task-execution-role"
        name                  = "walletconnect-prod-history-ecs-task-execution-role"
      ~ tags                  = {
          - "application" = "history" -> null
        }
      ~ tags_all              = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (9 unchanged attributes hidden)
    }

  # module.ecs.aws_lb.application_load_balancer will be updated in-place
  ~ resource "aws_lb" "application_load_balancer" {
        id                                          = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:loadbalancer/app/walletconnect-prod-history/c55de72490c4a039"
        name                                        = "walletconnect-prod-history"
      ~ tags                                        = {
          - "application" = "history" -> null
        }
      ~ tags_all                                    = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (21 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.ecs.aws_lb_listener.listener will be updated in-place
  ~ resource "aws_lb_listener" "listener" {
        id                = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:listener/app/walletconnect-prod-history/c55de72490c4a039/e44bb46ef00b8a6a"
      ~ tags              = {
          - "application" = "history" -> null
        }
      ~ tags_all          = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_lb_listener.listener-http will be updated in-place
  ~ resource "aws_lb_listener" "listener-http" {
        id                = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:listener/app/walletconnect-prod-history/c55de72490c4a039/b41fd393390c353e"
      ~ tags              = {
          - "application" = "history" -> null
        }
      ~ tags_all          = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.ecs.aws_lb_target_group.target_group will be updated in-place
  ~ resource "aws_lb_target_group" "target_group" {
        id                                 = "arn:aws:elasticloadbalancing:eu-central-1:898587786287:targetgroup/walletconnect-prod-history/78b4a2bb7695306a"
        name                               = "walletconnect-prod-history"
      ~ tags                               = {
          - "application" = "history" -> null
        }
      ~ tags_all                           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (15 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.ecs.aws_security_group.app_ingress will be updated in-place
  ~ resource "aws_security_group" "app_ingress" {
        id                     = "sg-0b43a03722dabc0da"
        name                   = "walletconnect-prod-history-ingress-to-app"
      ~ tags                   = {
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.ecs.aws_security_group.lb_ingress will be updated in-place
  ~ resource "aws_security_group" "lb_ingress" {
        id                     = "sg-0b720bcf5e84babae"
        name                   = "walletconnect-prod-history-lb-ingress"
      ~ tags                   = {
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.history_docdb.aws_docdb_cluster.docdb_primary will be updated in-place
  ~ resource "aws_docdb_cluster" "docdb_primary" {
        id                              = "walletconnect-prod-history-history-db-primary"
      ~ tags                            = {
          - "application" = "history" -> null
        }
      ~ tags_all                        = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (24 unchanged attributes hidden)
    }

  # module.history_docdb.aws_docdb_cluster_instance.docdb_instances[0] will be updated in-place
  ~ resource "aws_docdb_cluster_instance" "docdb_instances" {
        id                           = "walletconnect-prod-history-history-db-primary-instance-0"
      ~ tags                         = {
          - "application" = "history" -> null
        }
      ~ tags_all                     = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (20 unchanged attributes hidden)
    }

  # module.history_docdb.aws_docdb_subnet_group.private_subnets will be updated in-place
  ~ resource "aws_docdb_subnet_group" "private_subnets" {
        id          = "walletconnect-prod-history-history-db-private-subnet-group"
        name        = "walletconnect-prod-history-history-db-private-subnet-group"
      ~ tags        = {
          - "application" = "history" -> null
        }
      ~ tags_all    = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (3 unchanged attributes hidden)
    }

  # module.history_docdb.aws_kms_key.docdb_encryption will be updated in-place
  ~ resource "aws_kms_key" "docdb_encryption" {
        id                                 = "2376630b-ad46-4e6d-900c-a03c76e6eb84"
      ~ tags                               = {
          - "application" = "history" -> null
        }
      ~ tags_all                           = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (9 unchanged attributes hidden)
    }

  # module.history_docdb.aws_secretsmanager_secret.master_password will be updated in-place
  ~ resource "aws_secretsmanager_secret" "master_password" {
        id                             = "arn:aws:secretsmanager:eu-central-1:898587786287:secret:walletconnect-prod-history-history-db-master-password-kQ0JMy"
        name                           = "walletconnect-prod-history-history-db-master-password"
      ~ tags                           = {
          - "application" = "history" -> null
        }
      ~ tags_all                       = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)
    }

  # module.history_docdb.aws_security_group.service_security_group will be updated in-place
  ~ resource "aws_security_group" "service_security_group" {
        id                     = "sg-0b20ecc25cab21283"
        name                   = "walletconnect-prod-history-history-db-service"
      ~ tags                   = {
          - "application" = "history" -> null
        }
      ~ tags_all               = {
          + "Application" = "history"
          - "application" = "history" -> null
            # (4 unchanged elements hidden)
        }
        # (7 unchanged attributes hidden)
    }

  # module.monitoring.grafana_dashboard.main will be updated in-place
  ~ resource "grafana_dashboard" "main" {
      ~ config_json  = jsonencode(
          ~ {
              + __inputs             = []
              + __requires           = []
              ~ annotations          = {
                  ~ list = [
                      ~ {
                          ~ datasource = {
                              - type = "datasource"
                              - uid  = "grafana"
                            } -> "-- Grafana --"
                            name       = "Annotations & Alerts"
                            # (7 unchanged attributes hidden)
                        },
                    ]
                }
              - fiscalYearStartMonth = 0
              + gnetId               = null
              + hideControls         = false
              ~ panels               = [
                  ~ {
                      + collapsed     = false
                      ~ datasource    = {
                          ~ type = "prometheus" -> "datasource"
                          ~ uid  = "t6t9OnQ4k" -> "grafana"
                        }
                      - fieldConfig   = {
                          - defaults  = {
                              - color      = {
                                  - mode = "palette-classic"
                                }
                              - custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - axisPlacement     = "auto"
                                  - barAlignment      = 0
                                  - drawStyle         = "line"
                                  - fillOpacity       = 0
                                  - gradientMode      = "none"
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - lineInterpolation = "linear"
                                  - lineWidth         = 1
                                  - pointSize         = 5
                                  - scaleDistribution = {
                                      - type = "linear"
                                    }
                                  - showPoints        = "auto"
                                  - spanNulls         = false
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  - thresholdsStyle   = {
                                      - mode = "off"
                                    }
                                }
                              - mappings   = []
                              - thresholds = {
                                  - mode  = "absolute"
                                  - steps = [
                                      - {
                                          - color = "green"
                                          - value = null
                                        },
                                    ]
                                }
                            }
                          - overrides = []
                        }
                      ~ gridPos       = {
                          ~ h = 8 -> 1
                          ~ w = 12 -> 24
                            # (2 unchanged attributes hidden)
                        }
                      - links         = []
                      - options       = {
                          - legend  = {
                              - calcs       = []
                              - displayMode = "list"
                              - placement   = "bottom"
                              - showLegend  = true
                            }
                          - tooltip = {
                              - mode = "multi"
                              - sort = "none"
                            }
                        }
                      - pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              ~ datasource   = {
                                  ~ type = "prometheus" -> "datasource"
                                  ~ uid  = "t6t9OnQ4k" -> "grafana"
                                }
                              - exemplar     = true
                              - expr         = "sum(rate(received_items{}[10m]))"
                              - legendFormat = "received items"
                              - refId        = "A"
                            },
                        ]
                      ~ title         = "Received Items" -> "Application"
                      ~ type          = "timeseries" -> "row"
                    },
                  ~ {
                      + alert         = {
                          + alertRuleTags       = [
                              + {},
                            ]
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 70,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "CPU_Avg",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - Prod - ECS - CPU utilization is high (over 70)"
                          + name                = "History - Prod - ECS - CPU Utilization alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      ~ datasource    = {
                          ~ type = "prometheus" -> "cloudwatch"
                          ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                        }
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  + axisSoftMax       = 40
                                  + axisSoftMin       = 0
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  ~ thresholdsStyle   = {
                                      ~ mode = "off" -> "area"
                                    }
                                    # (11 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      + {
                                          + color = "orange"
                                          + value = 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              + unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                          ~ overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "CPU_Max"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "dark-blue"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "CPU_Avg"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "blue"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ gridPos       = {
                          ~ x = 12 -> 0
                          ~ y = 0 -> 1
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              + alias            = "CPU (Max)"
                              ~ datasource       = {
                                  ~ type = "prometheus" -> "cloudwatch"
                                  ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              - exemplar         = true
                              - expr             = "sum(rate(stored_items{}[10m]))"
                              + expression       = ""
                              - legendFormat     = "stored items"
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "CPUUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              ~ refId            = "A" -> "CPU_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                          + {
                              + alias            = "CPU (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "CPUUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "CPU_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      ~ title         = "Stored Items" -> "CPU Utilization"
                        # (3 unchanged attributes hidden)
                    },
                  ~ {
                      + alert         = {
                          + alertRuleTags       = [
                              + {},
                            ]
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 70,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Mem_Avg",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - Prod - Memory Utilization - Memory utilization is high (over 70)"
                          + name                = "History - Prod - Memory Utilization - Memory Utilization alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      ~ datasource    = {
                          ~ type = "prometheus" -> "cloudwatch"
                          ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                        }
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  + axisSoftMax       = 40
                                  + axisSoftMin       = 0
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  ~ thresholdsStyle   = {
                                      ~ mode = "off" -> "area"
                                    }
                                    # (11 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      + {
                                          + color = "orange"
                                          + value = 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              + unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                          ~ overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Mem_Max"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "dark-purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Mem_Avg"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ gridPos       = {
                          ~ x = 0 -> 12
                          ~ y = 8 -> 1
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              + alias            = "Memory (Max)"
                              ~ datasource       = {
                                  ~ type = "prometheus" -> "cloudwatch"
                                  ~ uid  = "t6t9OnQ4k" -> "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              - exemplar         = true
                              - expr             = "sum(rate(get_queries{}[10m]))"
                              + expression       = ""
                              - legendFormat     = "get queries"
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "MemoryUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              ~ refId            = "A" -> "Mem_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                          + {
                              + alias            = "Memory (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + ServiceName = "walletconnect-prod-history-service"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "MemoryUtilization"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ECS"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Mem_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      ~ title         = "Get Queries" -> "Memory Utilization"
                        # (3 unchanged attributes hidden)
                    },
                  ~ {
                      + collapsed     = false
                      ~ datasource    = {
                          ~ type = "prometheus" -> "datasource"
                          ~ uid  = "t6t9OnQ4k" -> "grafana"
                        }
                      - fieldConfig   = {
                          - defaults  = {
                              - color      = {
                                  - mode = "palette-classic"
                                }
                              - custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - axisPlacement     = "auto"
                                  - barAlignment      = 0
                                  - drawStyle         = "line"
                                  - fillOpacity       = 0
                                  - gradientMode      = "none"
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - lineInterpolation = "linear"
                                  - lineWidth         = 1
                                  - pointSize         = 5
                                  - scaleDistribution = {
                                      - type = "linear"
                                    }
                                  - showPoints        = "auto"
                                  - spanNulls         = false
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                  - thresholdsStyle   = {
                                      - mode = "off"
                                    }
                                }
                              - mappings   = []
                              - thresholds = {
                                  - mode  = "absolute"
                                  - steps = [
                                      - {
                                          - color = "green"
                                          - value = null
                                        },
                                    ]
                                }
                            }
                          - overrides = []
                        }
                      ~ gridPos       = {
                          ~ h = 8 -> 1
                          ~ w = 12 -> 24
                          ~ x = 12 -> 0
                          ~ y = 8 -> 9
                        }
                      - links         = []
                      - options       = {
                          - legend  = {
                              - calcs       = []
                              - displayMode = "list"
                              - placement   = "bottom"
                              - showLegend  = true
                            }
                          - tooltip = {
                              - mode = "multi"
                              - sort = "none"
                            }
                        }
                      - pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              ~ datasource   = {
                                  ~ type = "prometheus" -> "datasource"
                                  ~ uid  = "t6t9OnQ4k" -> "grafana"
                                }
                              - exemplar     = true
                              - expr         = "sum(rate(served_items{}[10m]))"
                              - legendFormat = "served items"
                              - refId        = "A"
                            },
                        ]
                      ~ title         = "Served Items" -> "History"
                      ~ type          = "timeseries" -> "row"
                    },
                  ~ {
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ gridPos       = {
                          ~ h = 7 -> 8
                          ~ y = 16 -> 10
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ expr         = "sum(rate(cached_registrations{}[10m]))" -> "sum(rate(received_items{}[10m]))"
                              ~ legendFormat = "cached registrations" -> "received items"
                                # (3 unchanged attributes hidden)
                            },
                          - {
                              - datasource   = {
                                  - type = "prometheus"
                                  - uid  = "t6t9OnQ4k"
                                }
                              - exemplar     = true
                              - expr         = "sum(rate(fetched_registrations{}[10m]))"
                              - legendFormat = "fetched registrations"
                              - refId        = "B"
                            },
                        ]
                      ~ title         = "Registration Lookups" -> "Received Items per Hour"
                        # (4 unchanged attributes hidden)
                    },
                  ~ {
                      + description   = null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisCenteredZero  = false
                                  - axisColorMode     = "text"
                                  - axisLabel         = ""
                                  - hideFrom          = {
                                      - legend  = false
                                      - tooltip = false
                                      - viz     = false
                                    }
                                  - stacking          = {
                                      - group = "A"
                                      - mode  = "none"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ gridPos       = {
                          ~ h = 7 -> 8
                          ~ y = 16 -> 10
                            # (2 unchanged attributes hidden)
                        }
                      ~ options       = {
                          ~ legend  = {
                              - showLegend  = true
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              - editorMode   = "code"
                              ~ expr         = "sum(rate(register{}[10m]))" -> "sum(rate(stored_items{}[10m]))"
                              ~ legendFormat = "registrations" -> "stored items"
                              - range        = true
                                # (3 unchanged attributes hidden)
                            },
                        ]
                      ~ title         = "Registrations" -> "Stored Items per Hour"
                        # (4 unchanged attributes hidden)
                    },
                  + {
                      + datasource    = {
                          + type = "prometheus"
                          + uid  = "t6t9OnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 12
                          + x = 0
                          + y = 18
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(get_queries{}[10m]))"
                              + legendFormat = "get queries"
                              + refId        = "A"
                            },
                        ]
                      + title         = "Get Queries per Hour"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "prometheus"
                          + uid  = "t6t9OnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 12
                          + x = 12
                          + y = 18
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(served_items{}[10m]))"
                              + legendFormat = "served items"
                              + refId        = "A"
                            },
                        ]
                      + title         = "Served Items per Hour"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "prometheus"
                          + uid  = "t6t9OnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 24
                          + x = 0
                          + y = 26
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(cached_registrations{}[10m]))"
                              + legendFormat = "cached registrations"
                              + refId        = "A"
                            },
                          + {
                              + datasource   = {
                                  + type = "prometheus"
                                  + uid  = "t6t9OnQ4k"
                                }
                              + exemplar     = true
                              + expr         = "sum(rate(fetched_registrations{}[10m]))"
                              + legendFormat = "fetched registrations"
                              + refId        = "B"
                            },
                        ]
                      + title         = "Registrations per Hour"
                      + type          = "timeseries"
                    },
                  + {
                      + collapsed  = false
                      + datasource = {
                          + type = "datasource"
                          + uid  = "grafana"
                        }
                      + gridPos    = {
                          + h = 1
                          + w = 24
                          + x = 0
                          + y = 34
                        }
                      + targets    = [
                          + {
                              + datasource = {
                                  + type = "datasource"
                                  + uid  = "grafana"
                                }
                            },
                        ]
                      + title      = "Load Balancer"
                      + type       = "row"
                    },
                  + {
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 5
                                  + axisSoftMin       = 0
                                  + barAlignment      = 0
                                  + drawStyle         = "line"
                                  + fillOpacity       = 0
                                  + gradientMode      = "none"
                                  + lineInterpolation = "linear"
                                  + lineWidth         = 1
                                  + pointSize         = 5
                                  + scaleDistribution = {
                                      + type = "linear"
                                    }
                                  + showPoints        = "auto"
                                  + spanNulls         = false
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                    ]
                                }
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 12
                          + x = 0
                          + y = 35
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "eu-central-1"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + TargetGroup = "targetgroup/walletconnect-prod-history/78b4a2bb7695306a"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "HealthyHostCount"
                              + metricQueryType  = 1
                              + namespace        = "AWS/NetworkELB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "A"
                              + region           = "default"
                              + sql              = {
                                  + from   = {
                                      + property = {
                                          + name = "AWS/NetworkELB"
                                          + type = "string"
                                        }
                                      + type     = "property"
                                    }
                                  + select = {
                                      + name       = "MAX"
                                      + parameters = [
                                          + {
                                              + name = "HealthyHostCount"
                                              + type = "functionParameter"
                                            },
                                        ]
                                      + type       = "function"
                                    }
                                  + where  = {
                                      + expressions = [
                                          + {
                                              + operator = {
                                                  + name  = "="
                                                  + value = "app/walletconnect-prod-history/c55de72490c4a039"
                                                }
                                              + property = {
                                                  + name = "LoadBalancer"
                                                  + type = "string"
                                                }
                                              + type     = "operator"
                                            },
                                        ]
                                      + type        = "and"
                                    }
                                }
                              + sqlExpression    = "SELECT MAX(HealthyHostCount) FROM \"AWS/NetworkELB\" WHERE LoadBalancer = 'app/walletconnect-prod-history/c55de72490c4a039'"
                              + statistic        = "Maximum"
                            },
                        ]
                      + title         = "Healthy Hosts"
                      + type          = "timeseries"
                    },
                  + {
                      + collapsed  = false
                      + datasource = {
                          + type = "datasource"
                          + uid  = "grafana"
                        }
                      + gridPos    = {
                          + h = 1
                          + w = 24
                          + x = 0
                          + y = 43
                        }
                      + targets    = [
                          + {
                              + datasource = {
                                  + type = "datasource"
                                  + uid  = "grafana"
                                }
                            },
                        ]
                      + title      = "Database"
                      + type       = "row"
                    },
                  + {
                      + alert         = {
                          + alertRuleTags       = {}
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 50,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "or"
                                    }
                                  + query     = {
                                      + params = [
                                          + "CPU_Max",
                                     
...

Action: pull_request

@xav xav added this pull request to the merge queue Jun 7, 2023
Merged via the queue into main with commit 3eee5b5 Jun 7, 2023
@xav xav deleted the feat/metrics branch June 7, 2023 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant