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

chore: add metrics for HTTP requests #53

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

xav
Copy link
Contributor

@xav xav commented Jul 4, 2023

Description

Add analytics panel for HTTP requests

Resolves #52

How Has This Been Tested?

terraform plan

Due Diligence

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

Copy link
Member

@arein arein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah awesome! Somehow I was under the assumption that we use an NLB here and need to do this differently. Thank you!

@xav xav force-pushed the 52-add-http-status-metrics-to-grafana-dashboard branch from 83d25b3 to ff45447 Compare July 4, 2023 13:02
@xav xav temporarily deployed to infra/prod July 4, 2023 13:02 — with GitHub Actions Inactive
@xav xav temporarily deployed to infra/staging July 4, 2023 13:02 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Show Plan

[command]/home/runner/work/_temp/36f6a138-053d-4239-ba06-962c7c49d842/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(
          ~ {
              ~ panels        = [
                    {
                        collapsed  = false
                        datasource = {
                            type = "datasource"
                            uid  = "grafana"
                        }
                        gridPos    = {
                            h = 1
                            w = 24
                            x = 0
                            y = 0
                        }
                        targets    = [
                            {
                                datasource = {
                                    type = "datasource"
                                    uid  = "grafana"
                                }
                            },
                        ]
                        title      = "Application"
                        type       = "row"
                    },
                  ~ {
                      ~ alert         = {
                          ~ message             = "History - Staging - ECS - CPU utilization is high (over 70)" -> "History - Staging - ECS - CPU utilization is high (over 70%)"
                            name                = "History - Staging - ECS - CPU Utilization alert"
                            # (8 unchanged attributes hidden)
                        }
                        # (10 unchanged attributes hidden)
                    },
                  ~ {
                      ~ alert         = {
                          ~ message             = "History - Staging - Memory Utilization - Memory utilization is high (over 70)" -> "History - Staging - ECS - Memory utilization is high (over 70%)"
                          ~ name                = "History - Staging - Memory Utilization - Memory Utilization alert" -> "History - Staging - ECS - Memory Utilization alert"
                            # (8 unchanged attributes hidden)
                        }
                        # (10 unchanged attributes hidden)
                    },
                    {
                        collapsed  = false
                        datasource = {
                            type = "datasource"
                            uid  = "grafana"
                        }
                        gridPos    = {
                            h = 1
                            w = 24
                            x = 0
                            y = 9
                        }
                        targets    = [
                            {
                                datasource = {
                                    type = "datasource"
                                    uid  = "grafana"
                                }
                            },
                        ]
                        title      = "History"
                        type       = "row"
                    },
                    # (7 unchanged elements hidden)
                    {
                        datasource    = {
                            type = "cloudwatch"
                            uid  = "W73r_t_4k"
                        }
                        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 = 12
                            y = 35
                        }
                        links         = []
                        options       = {
                            legend  = {
                                calcs       = []
                                displayMode = "list"
                                placement   = "bottom"
                            }
                            tooltip = {
                                mode = "multi"
                                sort = "none"
                            }
                        }
                        pluginVersion = "8.4.7"
                        targets       = [
                            {
                                datasource       = {
                                    type = "cloudwatch"
                                    uid  = "W73r_t_4k"
                                }
                                dimensions       = {
                                    TargetGroup = "targetgroup/walletconnect-staging-history/eadfa45347d00c71"
                                }
                                expression       = ""
                                matchExact       = false
                                metricEditorMode = 0
                                metricName       = "HealthyHostCount"
                                metricQueryType  = 1
                                namespace        = "AWS/ApplicationELB"
                                period           = "auto"
                                queryMode        = "Metrics"
                                refId            = "A"
                                region           = "default"
                                sql              = {
                                    from   = {
                                        property = {
                                            name = "AWS/ApplicationELB"
                                            type = "string"
                                        }
                                        type     = "property"
                                    }
                                    select = {
                                        name       = "MAX"
                                        parameters = [
                                            {
                                                name = "HealthyHostCount"
                                                type = "functionParameter"
                                            },
                                        ]
                                        type       = "function"
                                    }
                                    where  = {
                                        expressions = [
                                            {
                                                operator = {
                                                    name  = "="
                                                    value = "app/walletconnect-staging-history/60b171566a3acf0a"
                                                }
                                                property = {
                                                    name = "LoadBalancer"
                                                    type = "string"
                                                }
                                                type     = "operator"
                                            },
                                        ]
                                        type        = "and"
                                    }
                                }
                                sqlExpression    = "SELECT MAX(HealthyHostCount) FROM \"AWS/ApplicationELB\" WHERE LoadBalancer = 'app/walletconnect-staging-history/60b171566a3acf0a'"
                                statistic        = "Maximum"
                            },
                        ]
                        title         = "Healthy Hosts"
                        type          = "timeseries"
                    },
                  ~ {
                      - collapsed     = false
                      ~ datasource    = {
                          ~ type = "datasource" -> "cloudwatch"
                          ~ uid  = "grafana" -> "W73r_t_4k"
                        }
                      + 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 = 1 -> 8
                          ~ w = 24 -> 8
                            # (2 unchanged attributes hidden)
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              + alias            = "Requests"
                              ~ datasource       = {
                                  ~ type = "datasource" -> "cloudwatch"
                                  ~ uid  = "grafana" -> "W73r_t_4k"
                                }
                              + dimensions       = {
                                  + LoadBalancer = "app/walletconnect-staging-history/60b171566a3acf0a"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "RequestCount"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ApplicationELB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Requests"
                              + region           = "default"
                              + statistic        = "Sum"
                            },
                        ]
                      ~ title         = "Database" -> "Requests"
                      ~ type          = "row" -> "timeseries"
                    },
                  ~ {
                      ~ alert         = {
                          ~ conditions          = [
                              ~ {
                                  ~ evaluator = {
                                      ~ params = [
                                          - 50,
                                          + 100,
                                        ]
                                        # (1 unchanged attribute hidden)
                                    }
                                  ~ query     = {
                                      ~ params = [
                                          - "CPU_Max",
                                          + "ELB",
                                            "5m",
                                            # (1 unchanged element hidden)
                                        ]
                                    }
                                    # (3 unchanged attributes hidden)
                                },
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 100,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "or"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Target",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          ~ message             = "History - staging DocumentDB CPU alert" -> "History - Staging - Too many 4XX"
                          ~ name                = "History - staging DocumentDB CPU alert" -> "History - Staging - 4XX alert"
                          ~ noDataState         = "alerting" -> "no_data"
                            # (6 unchanged attributes hidden)
                        }
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  ~ axisSoftMax       = 40 -> 120
                                  ~ thresholdsStyle   = {
                                      ~ mode = "area" -> "dashed"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      ~ {
                                          ~ color = "orange" -> "red"
                                          ~ value = 40 -> 100
                                        },
                                      - {
                                          - color = "red"
                                          - value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              - unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ gridPos       = {
                          ~ x = 0 -> 8
                          ~ y = 44 -> 43
                            # (2 unchanged attributes hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "CPU (Max)" -> "ELB"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-staging-history/60b171566a3acf0a"
                                }
                              ~ metricName       = "CPUUtilization" -> "HTTPCode_ELB_4XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "CPU_Max" -> "ELB"
                              ~ statistic        = "Maximum" -> "Sum"
                                # (8 unchanged attributes hidden)
                            },
                          ~ {
                              ~ alias            = "CPU (Avg)" -> "Target"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-staging-history/60b171566a3acf0a"
                                }
                              ~ metricName       = "CPUUtilization" -> "HTTPCode_Target_4XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "CPU_Avg" -> "Target"
                              ~ statistic        = "Average" -> "Sum"
                                # (8 unchanged attributes hidden)
                            },
                        ]
                      + thresholds    = [
                          + {
                              + colorMode = "critical"
                              + op        = "gt"
                              + value     = 100
                              + visible   = true
                            },
                        ]
                      ~ title         = "CPU Utilization" -> "4XX"
                        # (6 unchanged attributes hidden)
                    },
                  ~ {
                      ~ alert         = {
                          ~ conditions          = [
                              ~ {
                                  ~ evaluator = {
                                      ~ params = [
                                          - 4000000000,
                                          + 100,
                                        ]
                                      ~ type   = "lt" -> "gt"
                                    }
                                  ~ operator  = {
                                      ~ type = "and" -> "or"
                                    }
                                  ~ query     = {
                                      ~ params = [
                                          - "Mem_Avg",
                                          + "ELB",
                                            "5m",
                                            # (1 unchanged element hidden)
                                        ]
                                    }
                                  ~ reducer   = {
                                      ~ type   = "min" -> "avg"
                                        # (1 unchanged attribute hidden)
                                    }
                                    # (1 unchanged attribute hidden)
                                },
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 100,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "or"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Target",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          ~ message             = "History - staging DocumentDB Freeable Memory" -> "History - Staging - Too many 5XX"
                          ~ name                = "History - staging DocumentDB Freeable Memory Alert" -> "History - Staging - 5XX alert"
                          ~ noDataState         = "alerting" -> "no_data"
                            # (6 unchanged attributes hidden)
                        }
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  ~ axisSoftMax       = 16000000000 -> 120
                                  ~ thresholdsStyle   = {
                                      ~ mode = "area" -> "dashed"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  + mode  = "absolute"
                                  ~ steps = [
                                      ~ {
                                          ~ color = "red" -> "green"
                                            # (1 unchanged attribute hidden)
                                        },
                                      ~ {
                                          ~ color = "green" -> "red"
                                          ~ value = 4000000000 -> 100
                                        },
                                    ]
                                }
                              - unit       = "decbytes"
                                # (2 unchanged attributes hidden)
                            }
                          ~ 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 = {
                                              - fixedColor = "purple"
                                              - mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ gridPos       = {
                          ~ x = 8 -> 16
                          ~ y = 44 -> 43
                            # (2 unchanged attributes hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "Freeable Memory (Min)" -> "ELB"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-staging-history/60b171566a3acf0a"
                                }
                              ~ matchExact       = true -> false
                              ~ metricName       = "FreeableMemory" -> "HTTPCode_ELB_5XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "Mem_Min" -> "ELB"
                              ~ statistic        = "Minimum" -> "Sum"
                                # (7 unchanged attributes hidden)
                            },
                          ~ {
                              ~ alias            = "Freeable Memory (Avg)" -> "Target"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-staging-history/60b171566a3acf0a"
                                }
                              ~ matchExact       = true -> false
                              ~ metricName       = "FreeableMemory" -> "HTTPCode_Target_5XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "Mem_Avg" -> "Target"
                              ~ statistic        = "Average" -> "Sum"
                                # (7 unchanged attributes hidden)
                            },
                        ]
                      ~ thresholds    = [
                          ~ {
                              ~ op        = "lt" -> "gt"
                              ~ value     = 4000000000 -> 100
                                # (2 unchanged attributes hidden)
                            },
                        ]
                      ~ title         = "Available Memory" -> "5XX"
                        # (6 unchanged attributes hidden)
                    },
                  ~ {
                      + collapsed     = false
                      ~ datasource    = {
                          ~ type = "cloudwatch" -> "datasource"
                          ~ uid  = "W73r_t_4k" -> "grafana"
                        }
                      - 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 -> 1
                          ~ w = 8 -> 24
                          ~ x = 16 -> 0
                          ~ y = 44 -> 51
                        }
                      - links         = []
                      - options       = {
                          - legend  = {
                              - calcs       = []
                              - displayMode = "list"
                              - placement   = "bottom"
                            }
                          - tooltip = {
                              - mode = "multi"
                              - sort = "none"
                            }
                        }
                      - pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              - alias            = "Database Connections"
                              ~ datasource       = {
                                  ~ type = "cloudwatch" -> "datasource"
                                  ~ uid  = "W73r_t_4k" -> "grafana"
                                }
                              - dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                }
                              - expression       = ""
                              - matchExact       = true
                              - metricEditorMode = 0
                              - metricName       = "DatabaseConnections"
                              - metricQueryType  = 0
                              - namespace        = "AWS/DocDB"
                              - period           = "auto"
                              - queryMode        = "Metrics"
                              - refId            = "A"
                              - region           = "default"
                              - statistic        = "Average"
                            },
                        ]
                      ~ title         = "Database Connections" -> "Database"
                      ~ type          = "timeseries" -> "row"
                    },
                  ~ {
                      ~ alert         = {
                          ~ conditions          = [
                              ~ {
                                  ~ evaluator = {
                                      ~ params = [
                                          - 2,
                                          + 50,
                                        ]
                                        # (1 unchanged attribute hidden)
                                    }
                                  ~ operator  = {
                                      ~ type = "and" -> "or"
                                    }
                                  ~ query     = {
                                      ~ params = [
                                          - "Ops_Max",
                                          + "CPU_Max",
                                            "5m",
                                            # (1 unchanged element hidden)
                                        ]
                                    }
                                  ~ reducer   = {
                                      ~ type   = "max" -> "avg"
                                        # (1 unchanged attribute hidden)
                                    }
                                    # (1 unchanged attribute hidden)
                                },
                            ]
                          ~ message             = "History - staging DocumentDB LowMem Num Operations Throttled" -> "History - staging DocumentDB CPU alert"
                          ~ name                = "History - staging DocumentDB LowMem Num Operations Throttled Alert" -> "History - staging DocumentDB CPU alert"
                            # (7 unchanged attributes hidden)
                        }
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  ~ axisSoftMax       = 10 -> 40
                                    # (13 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      ~ {
                                          ~ color = "red" -> "orange"
                                          ~ value = 2 -> 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              + unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                          ~ overrides = [
                              - {
                                  - matcher    = {
                                      - id      = "byFrameRefID"
                                      - options = "Ops_Max"
                                    }
                                  - properties = [
                                      - {
                                          - id    = "color"
                                          - value = {
                                              - fixedColor = "red"
                                              - mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "LowMem Num Operations Throttled (Avg)" -> "CPU (Max)"
                              ~ metricName       = "LowMemNumOperationsThrottled" -> "CPUUtilization"
                              ~ refId            = "Ops_Max" -> "CPU_Max"
                                # (11 unchanged attributes hidden)
                            },
                          + {
                              + alias            = "CPU (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "W73r_t_4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-staging-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         = "LowMem Num Operations Throttled" -> "CPU Utilization"
                        # (7 unchanged attributes hidden)
                    },
                  ~ {
                      + 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 - staging DocumentDB Freeable Memory"
                          + name                = "History - staging DocumentDB Freeable Memory Alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      ~ description   = "Max is 64TB" -> null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  + axisSoftMax       = 16000000000
                                  + axisSoftMin       = 0
                                  ~ spanNulls         = true -> false
                                  ~ thresholdsStyle   = {
                                      ~ mode = "off" -> "area"
                                    }
                                    # (10 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  - mode  = "absolute"
                                  ~ steps = [
                                      ~ {
                                          ~ color = "green" -> "red"
                                            # (1 unchanged attribute hidden)
                                        },
                                      ~ {
                                          ~ color = "red" -> "green"
                                          ~ value = 40000000000000 -> 4000000000
                                        },
                                    ]
                                }
                                # (3 unchanged attributes hidden)
                            }
                          ~ 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 = {
                                              + fixedColor = "purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ targets       = [
                          ~ {
                              + alias            = "Freeable Memory (Min)"
                              ~ matchExact       = false -> true
                              ~ metricName       = "VolumeBytesUsed" -> "FreeableMemory"
                              ~ refId            = "A" -> "Mem_Min"
                              ~ statistic        = "Maximum" -> "Minimum"
                                # (9 unchanged attributes hidden)
                            },
                          + {
                              + alias            = "Freeable Memory (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "W73r_t_4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "FreeableMemory"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Mem_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      + thresholds    = [
                          + {
                              + colorMode = "critical"
                              + op        = "lt"
                              + value     = 4000000000
                              + visible   = true
                            },
                        ]
                      ~ title         = "DocumentDB Volume" -> "Available Memory"
                        # (6 unchanged attributes hidden)
                    },
                  ~ {
                      ~ description   = "See https://docs.aws.amazon.com/documentdb/latest/developerguide/best_practices.html" -> null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisSoftMax       = 100
                                  - axisSoftMin       = 90
                                    # (12 unchanged attributes hidden)
                                }
                              - unit       = "percent"
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "Average Cache Hit %" -> "Database Connections"
                              ~ metricName       = "BufferCacheHitRatio" -> "DatabaseConnections"
                                # (12 unchanged attributes hidden)
                            },
                        ]
                      ~ title         = "DocumentDB Buffer Cache Hit Ratio" -> "Database Connections"
                        # (6 unchanged attributes hidden)
                    },
                  + {
                      + alert         = {
                          + alertRuleTags       = {}
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 2,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Ops_Max",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "max"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - staging DocumentDB LowMem Num Operations Throttled"
                          + name                = "History - staging DocumentDB LowMem Num Operations Throttled Alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "W73r_t_4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 10
                                  + 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 = "red"
                                          + value = 2
                                        },
                                    ]
                                }
                            }
                          + overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Ops_Max"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "red"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 0
                          + y = 60
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "LowMem Num Operations Throttled (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "W73r_t_4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "LowMemNumOperationsThrottled"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Ops_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                        ]
                      + title         = "LowMem Num Operations Throttled"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "W73r_t_4k"
                        }
                      + description   = "Max is 64TB"
                      + 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         = true
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                      + {
                                          + color = "red"
                                          + value = 40000000000000
                                        },
                                    ]
                                }
                              + unit       = "decbytes"
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 8
                          + y = 60
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "W73r_t_4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "VolumeBytesUsed"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "A"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                        ]
                      + title         = "DocumentDB Volume"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "W73r_t_4k"
                        }
                      + description   = "See https://docs.aws.amazon.com/documentdb/latest/developerguide/best_practices.html"
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 100
                                  + axisSoftMin       = 90
                                  + 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
                                        },
                                    ]
                                }
                              + unit       = "percent"
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 16
                          + y = 60
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "Average Cache Hit %"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "W73r_t_4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-staging-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "BufferCacheHitRatio"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "A"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      + title         = "DocumentDB Buffer Cache Hit Ratio"
                      + type          = "timeseries"
                    },
                ]
                tags          = []
                # (19 unchanged attributes hidden)
            }
        )
        id           = "0:staging-history"
        # (7 unchanged attributes hidden)
    }

Plan: 0 to add, 1 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  ~ update in-place%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.grafana_dashboard.main will be updated in-place%0A  ~ resource "grafana_dashboard" "main" {%0A      ~ config_json  = jsonencode(%0A          ~ {%0A              ~ panels        = [%0A                    {%0A                        collapsed  = false%0A                        datasource = {%0A                            type = "datasource"%0A                            uid  = "grafana"%0A                        }%0A                        gridPos    = {%0A                            h = 1%0A                            w = 24%0A                            x = 0%0A                            y = 0%0A                        }%0A                        targets    = [%0A                            {%0A                                datasource = {%0A                                    type = "datasource"%0A                                    uid  = "grafana"%0A                                }%0A                            },%0A                        ]%0A                        title      = "Application"%0A                        type       = "row"%0A                    },%0A                  ~ {%0A                      ~ alert         = {%0A                          ~ message             = "History - Staging - ECS - CPU utilization is high (over 70)" -> "History - Staging - ECS - CPU utilization is high (over 70%25)"%0A                            name                = "History - Staging - ECS - CPU Uti
...

Action: pull_request

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Show Plan

[command]/home/runner/work/_temp/070fc2f3-7fec-4410-9c86-987b2e81738f/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(
          ~ {
              ~ panels        = [
                    {
                        collapsed  = false
                        datasource = {
                            type = "datasource"
                            uid  = "grafana"
                        }
                        gridPos    = {
                            h = 1
                            w = 24
                            x = 0
                            y = 0
                        }
                        targets    = [
                            {
                                datasource = {
                                    type = "datasource"
                                    uid  = "grafana"
                                }
                            },
                        ]
                        title      = "Application"
                        type       = "row"
                    },
                  ~ {
                      ~ alert         = {
                          ~ message             = "History - Prod - ECS - CPU utilization is high (over 70)" -> "History - Prod - ECS - CPU utilization is high (over 70%)"
                            name                = "History - Prod - ECS - CPU Utilization alert"
                            # (8 unchanged attributes hidden)
                        }
                        # (10 unchanged attributes hidden)
                    },
                  ~ {
                      ~ alert         = {
                          ~ message             = "History - Prod - Memory Utilization - Memory utilization is high (over 70)" -> "History - Prod - ECS - Memory utilization is high (over 70%)"
                          ~ name                = "History - Prod - Memory Utilization - Memory Utilization alert" -> "History - Prod - ECS - Memory Utilization alert"
                            # (8 unchanged attributes hidden)
                        }
                        # (10 unchanged attributes hidden)
                    },
                    {
                        collapsed  = false
                        datasource = {
                            type = "datasource"
                            uid  = "grafana"
                        }
                        gridPos    = {
                            h = 1
                            w = 24
                            x = 0
                            y = 9
                        }
                        targets    = [
                            {
                                datasource = {
                                    type = "datasource"
                                    uid  = "grafana"
                                }
                            },
                        ]
                        title      = "History"
                        type       = "row"
                    },
                    # (7 unchanged elements hidden)
                    {
                        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 = 12
                            y = 35
                        }
                        links         = []
                        options       = {
                            legend  = {
                                calcs       = []
                                displayMode = "list"
                                placement   = "bottom"
                            }
                            tooltip = {
                                mode = "multi"
                                sort = "none"
                            }
                        }
                        pluginVersion = "8.4.7"
                        targets       = [
                            {
                                datasource       = {
                                    type = "cloudwatch"
                                    uid  = "_8t9dnQ4k"
                                }
                                dimensions       = {
                                    TargetGroup = "targetgroup/walletconnect-prod-history/78b4a2bb7695306a"
                                }
                                expression       = ""
                                matchExact       = false
                                metricEditorMode = 0
                                metricName       = "HealthyHostCount"
                                metricQueryType  = 1
                                namespace        = "AWS/ApplicationELB"
                                period           = "auto"
                                queryMode        = "Metrics"
                                refId            = "A"
                                region           = "default"
                                sql              = {
                                    from   = {
                                        property = {
                                            name = "AWS/ApplicationELB"
                                            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/ApplicationELB\" WHERE LoadBalancer = 'app/walletconnect-prod-history/c55de72490c4a039'"
                                statistic        = "Maximum"
                            },
                        ]
                        title         = "Healthy Hosts"
                        type          = "timeseries"
                    },
                  ~ {
                      - collapsed     = false
                      ~ datasource    = {
                          ~ type = "datasource" -> "cloudwatch"
                          ~ uid  = "grafana" -> "_8t9dnQ4k"
                        }
                      + 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 = 1 -> 8
                          ~ w = 24 -> 8
                            # (2 unchanged attributes hidden)
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              + alias            = "Requests"
                              ~ datasource       = {
                                  ~ type = "datasource" -> "cloudwatch"
                                  ~ uid  = "grafana" -> "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + LoadBalancer = "app/walletconnect-prod-history/c55de72490c4a039"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "RequestCount"
                              + metricQueryType  = 0
                              + namespace        = "AWS/ApplicationELB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Requests"
                              + region           = "default"
                              + statistic        = "Sum"
                            },
                        ]
                      ~ title         = "Database" -> "Requests"
                      ~ type          = "row" -> "timeseries"
                    },
                  ~ {
                      ~ alert         = {
                          ~ conditions          = [
                              ~ {
                                  ~ evaluator = {
                                      ~ params = [
                                          - 50,
                                          + 100,
                                        ]
                                        # (1 unchanged attribute hidden)
                                    }
                                  ~ query     = {
                                      ~ params = [
                                          - "CPU_Max",
                                          + "ELB",
                                            "5m",
                                            # (1 unchanged element hidden)
                                        ]
                                    }
                                    # (3 unchanged attributes hidden)
                                },
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 100,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "or"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Target",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          ~ message             = "History - prod DocumentDB CPU alert" -> "History - Prod - Too many 4XX"
                          ~ name                = "History - prod DocumentDB CPU alert" -> "History - Prod - 4XX alert"
                          ~ noDataState         = "alerting" -> "no_data"
                            # (6 unchanged attributes hidden)
                        }
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  ~ axisSoftMax       = 40 -> 120
                                  ~ thresholdsStyle   = {
                                      ~ mode = "area" -> "dashed"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      ~ {
                                          ~ color = "orange" -> "red"
                                          ~ value = 40 -> 100
                                        },
                                      - {
                                          - color = "red"
                                          - value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              - unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ gridPos       = {
                          ~ x = 0 -> 8
                          ~ y = 44 -> 43
                            # (2 unchanged attributes hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "CPU (Max)" -> "ELB"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-prod-history/c55de72490c4a039"
                                }
                              ~ metricName       = "CPUUtilization" -> "HTTPCode_ELB_4XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "CPU_Max" -> "ELB"
                              ~ statistic        = "Maximum" -> "Sum"
                                # (8 unchanged attributes hidden)
                            },
                          ~ {
                              ~ alias            = "CPU (Avg)" -> "Target"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-prod-history/c55de72490c4a039"
                                }
                              ~ metricName       = "CPUUtilization" -> "HTTPCode_Target_4XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "CPU_Avg" -> "Target"
                              ~ statistic        = "Average" -> "Sum"
                                # (8 unchanged attributes hidden)
                            },
                        ]
                      + thresholds    = [
                          + {
                              + colorMode = "critical"
                              + op        = "gt"
                              + value     = 100
                              + visible   = true
                            },
                        ]
                      ~ title         = "CPU Utilization" -> "4XX"
                        # (6 unchanged attributes hidden)
                    },
                  ~ {
                      ~ alert         = {
                          ~ conditions          = [
                              ~ {
                                  ~ evaluator = {
                                      ~ params = [
                                          - 4000000000,
                                          + 100,
                                        ]
                                      ~ type   = "lt" -> "gt"
                                    }
                                  ~ operator  = {
                                      ~ type = "and" -> "or"
                                    }
                                  ~ query     = {
                                      ~ params = [
                                          - "Mem_Avg",
                                          + "ELB",
                                            "5m",
                                            # (1 unchanged element hidden)
                                        ]
                                    }
                                  ~ reducer   = {
                                      ~ type   = "min" -> "avg"
                                        # (1 unchanged attribute hidden)
                                    }
                                    # (1 unchanged attribute hidden)
                                },
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 100,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "or"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Target",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "avg"
                                    }
                                  + type      = "query"
                                },
                            ]
                          ~ message             = "History - prod DocumentDB Freeable Memory" -> "History - Prod - Too many 5XX"
                          ~ name                = "History - prod DocumentDB Freeable Memory Alert" -> "History - Prod - 5XX alert"
                          ~ noDataState         = "alerting" -> "no_data"
                            # (6 unchanged attributes hidden)
                        }
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  ~ axisSoftMax       = 16000000000 -> 120
                                  ~ thresholdsStyle   = {
                                      ~ mode = "area" -> "dashed"
                                    }
                                    # (12 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  + mode  = "absolute"
                                  ~ steps = [
                                      ~ {
                                          ~ color = "red" -> "green"
                                            # (1 unchanged attribute hidden)
                                        },
                                      ~ {
                                          ~ color = "green" -> "red"
                                          ~ value = 4000000000 -> 100
                                        },
                                    ]
                                }
                              - unit       = "decbytes"
                                # (2 unchanged attributes hidden)
                            }
                          ~ 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 = {
                                              - fixedColor = "purple"
                                              - mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ gridPos       = {
                          ~ x = 8 -> 16
                          ~ y = 44 -> 43
                            # (2 unchanged attributes hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "Freeable Memory (Min)" -> "ELB"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-prod-history/c55de72490c4a039"
                                }
                              ~ matchExact       = true -> false
                              ~ metricName       = "FreeableMemory" -> "HTTPCode_ELB_5XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "Mem_Min" -> "ELB"
                              ~ statistic        = "Minimum" -> "Sum"
                                # (7 unchanged attributes hidden)
                            },
                          ~ {
                              ~ alias            = "Freeable Memory (Avg)" -> "Target"
                              ~ dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                  + LoadBalancer        = "app/walletconnect-prod-history/c55de72490c4a039"
                                }
                              ~ matchExact       = true -> false
                              ~ metricName       = "FreeableMemory" -> "HTTPCode_Target_5XX_Count"
                              ~ namespace        = "AWS/DocDB" -> "AWS/ApplicationELB"
                              ~ refId            = "Mem_Avg" -> "Target"
                              ~ statistic        = "Average" -> "Sum"
                                # (7 unchanged attributes hidden)
                            },
                        ]
                      ~ thresholds    = [
                          ~ {
                              ~ op        = "lt" -> "gt"
                              ~ value     = 4000000000 -> 100
                                # (2 unchanged attributes hidden)
                            },
                        ]
                      ~ title         = "Available Memory" -> "5XX"
                        # (6 unchanged attributes hidden)
                    },
                  ~ {
                      + collapsed     = false
                      ~ datasource    = {
                          ~ type = "cloudwatch" -> "datasource"
                          ~ uid  = "_8t9dnQ4k" -> "grafana"
                        }
                      - 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 -> 1
                          ~ w = 8 -> 24
                          ~ x = 16 -> 0
                          ~ y = 44 -> 51
                        }
                      - links         = []
                      - options       = {
                          - legend  = {
                              - calcs       = []
                              - displayMode = "list"
                              - placement   = "bottom"
                            }
                          - tooltip = {
                              - mode = "multi"
                              - sort = "none"
                            }
                        }
                      - pluginVersion = "8.4.7"
                      ~ targets       = [
                          ~ {
                              - alias            = "Database Connections"
                              ~ datasource       = {
                                  ~ type = "cloudwatch" -> "datasource"
                                  ~ uid  = "_8t9dnQ4k" -> "grafana"
                                }
                              - dimensions       = {
                                  - DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              - expression       = ""
                              - matchExact       = true
                              - metricEditorMode = 0
                              - metricName       = "DatabaseConnections"
                              - metricQueryType  = 0
                              - namespace        = "AWS/DocDB"
                              - period           = "auto"
                              - queryMode        = "Metrics"
                              - refId            = "A"
                              - region           = "default"
                              - statistic        = "Average"
                            },
                        ]
                      ~ title         = "Database Connections" -> "Database"
                      ~ type          = "timeseries" -> "row"
                    },
                  ~ {
                      ~ alert         = {
                          ~ conditions          = [
                              ~ {
                                  ~ evaluator = {
                                      ~ params = [
                                          - 2,
                                          + 50,
                                        ]
                                        # (1 unchanged attribute hidden)
                                    }
                                  ~ operator  = {
                                      ~ type = "and" -> "or"
                                    }
                                  ~ query     = {
                                      ~ params = [
                                          - "Ops_Max",
                                          + "CPU_Max",
                                            "5m",
                                            # (1 unchanged element hidden)
                                        ]
                                    }
                                  ~ reducer   = {
                                      ~ type   = "max" -> "avg"
                                        # (1 unchanged attribute hidden)
                                    }
                                    # (1 unchanged attribute hidden)
                                },
                            ]
                          ~ message             = "History - prod DocumentDB LowMem Num Operations Throttled" -> "History - prod DocumentDB CPU alert"
                          ~ name                = "History - prod DocumentDB LowMem Num Operations Throttled Alert" -> "History - prod DocumentDB CPU alert"
                            # (7 unchanged attributes hidden)
                        }
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  ~ axisSoftMax       = 10 -> 40
                                    # (13 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  ~ steps = [
                                        {
                                            color = "green"
                                            value = null
                                        },
                                      ~ {
                                          ~ color = "red" -> "orange"
                                          ~ value = 2 -> 40
                                        },
                                      + {
                                          + color = "red"
                                          + value = 70
                                        },
                                    ]
                                    # (1 unchanged attribute hidden)
                                }
                              + unit       = "percent"
                                # (2 unchanged attributes hidden)
                            }
                          ~ overrides = [
                              - {
                                  - matcher    = {
                                      - id      = "byFrameRefID"
                                      - options = "Ops_Max"
                                    }
                                  - properties = [
                                      - {
                                          - id    = "color"
                                          - value = {
                                              - fixedColor = "red"
                                              - mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "LowMem Num Operations Throttled (Avg)" -> "CPU (Max)"
                              ~ metricName       = "LowMemNumOperationsThrottled" -> "CPUUtilization"
                              ~ refId            = "Ops_Max" -> "CPU_Max"
                                # (11 unchanged attributes hidden)
                            },
                          + {
                              + 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         = "LowMem Num Operations Throttled" -> "CPU Utilization"
                        # (7 unchanged attributes hidden)
                    },
                  ~ {
                      + 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       = []
                        }
                      ~ description   = "Max is 64TB" -> null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  + axisSoftMax       = 16000000000
                                  + axisSoftMin       = 0
                                  ~ spanNulls         = true -> false
                                  ~ thresholdsStyle   = {
                                      ~ mode = "off" -> "area"
                                    }
                                    # (10 unchanged attributes hidden)
                                }
                              ~ thresholds = {
                                  - mode  = "absolute"
                                  ~ steps = [
                                      ~ {
                                          ~ color = "green" -> "red"
                                            # (1 unchanged attribute hidden)
                                        },
                                      ~ {
                                          ~ color = "red" -> "green"
                                          ~ value = 40000000000000 -> 4000000000
                                        },
                                    ]
                                }
                                # (3 unchanged attributes hidden)
                            }
                          ~ 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 = {
                                              + fixedColor = "purple"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      ~ targets       = [
                          ~ {
                              + alias            = "Freeable Memory (Min)"
                              ~ matchExact       = false -> true
                              ~ metricName       = "VolumeBytesUsed" -> "FreeableMemory"
                              ~ refId            = "A" -> "Mem_Min"
                              ~ statistic        = "Maximum" -> "Minimum"
                                # (9 unchanged attributes hidden)
                            },
                          + {
                              + alias            = "Freeable Memory (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "FreeableMemory"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Mem_Avg"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      + thresholds    = [
                          + {
                              + colorMode = "critical"
                              + op        = "lt"
                              + value     = 4000000000
                              + visible   = true
                            },
                        ]
                      ~ title         = "DocumentDB Volume" -> "Available Memory"
                        # (6 unchanged attributes hidden)
                    },
                  ~ {
                      ~ description   = "See https://docs.aws.amazon.com/documentdb/latest/developerguide/best_practices.html" -> null
                      ~ fieldConfig   = {
                          ~ defaults  = {
                              ~ custom     = {
                                  - axisSoftMax       = 100
                                  - axisSoftMin       = 90
                                    # (12 unchanged attributes hidden)
                                }
                              - unit       = "percent"
                                # (3 unchanged attributes hidden)
                            }
                            # (1 unchanged attribute hidden)
                        }
                      ~ targets       = [
                          ~ {
                              ~ alias            = "Average Cache Hit %" -> "Database Connections"
                              ~ metricName       = "BufferCacheHitRatio" -> "DatabaseConnections"
                                # (12 unchanged attributes hidden)
                            },
                        ]
                      ~ title         = "DocumentDB Buffer Cache Hit Ratio" -> "Database Connections"
                        # (6 unchanged attributes hidden)
                    },
                  + {
                      + alert         = {
                          + alertRuleTags       = {}
                          + conditions          = [
                              + {
                                  + evaluator = {
                                      + params = [
                                          + 2,
                                        ]
                                      + type   = "gt"
                                    }
                                  + operator  = {
                                      + type = "and"
                                    }
                                  + query     = {
                                      + params = [
                                          + "Ops_Max",
                                          + "5m",
                                          + "now",
                                        ]
                                    }
                                  + reducer   = {
                                      + params = []
                                      + type   = "max"
                                    }
                                  + type      = "query"
                                },
                            ]
                          + executionErrorState = "alerting"
                          + for                 = "5m"
                          + frequency           = "1m"
                          + handler             = 1
                          + message             = "History - prod DocumentDB LowMem Num Operations Throttled"
                          + name                = "History - prod DocumentDB LowMem Num Operations Throttled Alert"
                          + noDataState         = "alerting"
                          + notifications       = []
                        }
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = null
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 10
                                  + 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 = "red"
                                          + value = 2
                                        },
                                    ]
                                }
                            }
                          + overrides = [
                              + {
                                  + matcher    = {
                                      + id      = "byFrameRefID"
                                      + options = "Ops_Max"
                                    }
                                  + properties = [
                                      + {
                                          + id    = "color"
                                          + value = {
                                              + fixedColor = "red"
                                              + mode       = "fixed"
                                            }
                                        },
                                    ]
                                },
                            ]
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 0
                          + y = 60
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "LowMem Num Operations Throttled (Avg)"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "LowMemNumOperationsThrottled"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "Ops_Max"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                        ]
                      + title         = "LowMem Num Operations Throttled"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = "Max is 64TB"
                      + 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         = true
                                  + thresholdsStyle   = {
                                      + mode = "off"
                                    }
                                }
                              + mappings   = []
                              + thresholds = {
                                  + mode  = "absolute"
                                  + steps = [
                                      + {
                                          + color = "green"
                                          + value = null
                                        },
                                      + {
                                          + color = "red"
                                          + value = 40000000000000
                                        },
                                    ]
                                }
                              + unit       = "decbytes"
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 8
                          + y = 60
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = false
                              + metricEditorMode = 0
                              + metricName       = "VolumeBytesUsed"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "A"
                              + region           = "default"
                              + statistic        = "Maximum"
                            },
                        ]
                      + title         = "DocumentDB Volume"
                      + type          = "timeseries"
                    },
                  + {
                      + datasource    = {
                          + type = "cloudwatch"
                          + uid  = "_8t9dnQ4k"
                        }
                      + description   = "See https://docs.aws.amazon.com/documentdb/latest/developerguide/best_practices.html"
                      + fieldConfig   = {
                          + defaults  = {
                              + color      = {
                                  + mode = "palette-classic"
                                }
                              + custom     = {
                                  + axisPlacement     = "auto"
                                  + axisSoftMax       = 100
                                  + axisSoftMin       = 90
                                  + 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
                                        },
                                    ]
                                }
                              + unit       = "percent"
                            }
                          + overrides = []
                        }
                      + gridPos       = {
                          + h = 8
                          + w = 8
                          + x = 16
                          + y = 60
                        }
                      + links         = []
                      + options       = {
                          + legend  = {
                              + calcs       = []
                              + displayMode = "list"
                              + placement   = "bottom"
                            }
                          + tooltip = {
                              + mode = "multi"
                              + sort = "none"
                            }
                        }
                      + pluginVersion = "8.4.7"
                      + targets       = [
                          + {
                              + alias            = "Average Cache Hit %"
                              + datasource       = {
                                  + type = "cloudwatch"
                                  + uid  = "_8t9dnQ4k"
                                }
                              + dimensions       = {
                                  + DBClusterIdentifier = "walletconnect-prod-history-history-db-primary"
                                }
                              + expression       = ""
                              + matchExact       = true
                              + metricEditorMode = 0
                              + metricName       = "BufferCacheHitRatio"
                              + metricQueryType  = 0
                              + namespace        = "AWS/DocDB"
                              + period           = "auto"
                              + queryMode        = "Metrics"
                              + refId            = "A"
                              + region           = "default"
                              + statistic        = "Average"
                            },
                        ]
                      + title         = "DocumentDB Buffer Cache Hit Ratio"
                      + type          = "timeseries"
                    },
                ]
                tags          = []
                # (19 unchanged attributes hidden)
            }
        )
        id           = "0:prod-history"
        # (7 unchanged attributes hidden)
    }

Plan: 0 to add, 1 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  ~ update in-place%0A%0ATerraform will perform the following actions:%0A%0A  # module.monitoring.grafana_dashboard.main will be updated in-place%0A  ~ resource "grafana_dashboard" "main" {%0A      ~ config_json  = jsonencode(%0A          ~ {%0A              ~ panels        = [%0A                    {%0A                        collapsed  = false%0A                        datasource = {%0A                            type = "datasource"%0A                            uid  = "grafana"%0A                        }%0A                        gridPos    = {%0A                            h = 1%0A                            w = 24%0A                            x = 0%0A                            y = 0%0A                        }%0A                        targets    = [%0A                            {%0A                                datasource = {%0A                                    type = "datasource"%0A                                    uid  = "grafana"%0A                                }%0A                            },%0A                        ]%0A                        title      = "Application"%0A                        type       = "row"%0A                    },%0A                  ~ {%0A                      ~ alert         = {%0A                          ~ message             = "History - Prod - ECS - CPU utilization is high (over 70)" -> "History - Prod - ECS - CPU utilization is high (over 70%25)"%0A                            name                = "History - Prod - ECS - CPU Utilization alert"%0A                            # (8 unchanged attributes hidden)%0A                        }%0A                        #
...

Action: pull_request

@xav xav added this pull request to the merge queue Jul 4, 2023
Merged via the queue into main with commit ccc9b00 Jul 4, 2023
6 checks passed
@xav xav deleted the 52-add-http-status-metrics-to-grafana-dashboard branch July 4, 2023 13:04
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.

Add HTTP status metrics to Grafana dashboard
2 participants