resource "datadog_dashboard_json" "ameba_health_overview_dashboard_json" {
  dashboard = jsonencode({
    title       = "AMEBA Health Overview"
    description = ""
    widgets = [
      {
        id = 0
        layout = {
          x      = 35
          y      = 120
          width  = 31
          height = 17
        }
        definition = {
          title       = "CPU Utilization - Top list"
          title_size  = "16"
          title_align = "left"
          type        = "toplist"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_red"
                  value      = 75
                  comparator = ">"
                },
                {
                  palette    = "white_on_green"
                  value      = 75
                  comparator = "<="
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ec2.cpuutilization{env:aomap} by {name}"
                  aggregator  = "avg"
                }
              ]
              formulas = [
                {
                  formula = "query1"
                }
              ]
              sort = {
                count = 5
                order_by = [
                  {
                    type  = "formula"
                    index = 0
                    order = "desc"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        id = 1
        layout = {
          x      = 16
          y      = 90
          width  = 18
          height = 9
        }
        definition = {
          title       = "Un-Health Host Count"
          title_size  = "13"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_red"
                  value      = 1
                  comparator = ">="
                },
                {
                  palette    = "white_on_green"
                  value      = 0
                  comparator = "<="
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "sum:aws.applicationelb.un_healthy_host_count.maximum{*} by {name}"
                  aggregator  = "max"
                }
              ]
              formulas = [
                {
                  formula = "query1"
                  limit = {
                    count = 10
                    order = "desc"
                  }
                }
              ]
            }
          ]
          autoscale  = true
          text_align = "left"
          precision  = 0
        }
      },
      {
        id = 2
        layout = {
          x      = 16
          y      = 100
          width  = 18
          height = 9
        }
        definition = {
          title       = "Healthy host count"
          title_size  = "13"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.applicationelb.healthy_host_count{*}"
                  aggregator  = "min"
                }
              ]
              formulas = [
                {
                  formula = "top(query1, 10, \"mean\", \"desc\") * 10"
                }
              ]
            }
          ]
          autoscale  = true
          text_align = "left"
          precision  = 0
        }
      },
      {
        id = 3
        layout = {
          x      = 16
          y      = 120
          width  = 18
          height = 11
        }
        definition = {
          title       = "Status Check Failed"
          title_size  = "16"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_red"
                  value      = 1
                  comparator = ">="
                },
                {
                  palette    = "white_on_green"
                  value      = 1
                  comparator = "<"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "sum:aws.ec2.status_check_failed{*}"
                  aggregator  = "sum"
                }
              ]
            }
          ]
          autoscale   = true
          custom_unit = "host"
          precision   = 0
        }
      },
      {
        id = 4
        layout = {
          x      = 16
          y      = 132
          width  = 18
          height = 11
        }
        definition = {
          title       = "Instance Status OK"
          title_size  = "13"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 12
                  comparator = ">"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "sum:aws.ec2.host_ok{*}"
                  aggregator  = "avg"
                }
              ]
            }
          ]
          autoscale   = true
          custom_unit = "host"
          text_align  = "left"
          precision   = 0
        }
      },
      {
        id = 5
        layout = {
          x      = 121
          y      = 105
          width  = 21
          height = 14
        }
        definition = {
          title       = "HTTP 200"
          title_size  = "16"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "sum:aws.applicationelb.httpcode_target_2xx{*}.as_count()"
                  aggregator  = "avg"
                }
              ]
            }
          ]
          autoscale  = true
          text_align = "left"
          precision  = 0
        }
      },
      {
        id = 6
        layout = {
          x      = 35
          y      = 90
          width  = 85
          height = 14
        }
        definition = {
          title       = "Request Count"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          legend_size = "0"
          time = {
            live_span = "1d"
          }
          type = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.applicationelb.request_count{*} by {host}.as_count()"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 7
        layout = {
          x      = 35
          y      = 105
          width  = 85
          height = 14
        }
        definition = {
          title       = "Latency"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          legend_size = "0"
          time = {
            live_span = "1d"
          }
          type = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.applicationelb.target_response_time.p95{*} by {targetgroup}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
        }
      },
      {
        id = 8
        layout = {
          x      = 0
          y      = 91
          width  = 15
          height = 27
        }
        definition = {
          type             = "note"
          content          = "\n\n##  \n\n\nELB"
          background_color = "blue"
          font_size        = "56"
          text_align       = "center"
          show_tick        = true
          tick_pos         = "50%"
          tick_edge        = "right"
        }
      },
      {
        id = 9
        layout = {
          x      = 121
          y      = 90
          width  = 21
          height = 14
        }
        definition = {
          title       = "HTTP 400"
          title_size  = "16"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.applicationelb.httpcode_target_4xx{ameba-alb}.as_count()"
                  aggregator  = "avg"
                }
              ]
              formulas = [
                {
                  formula = "query1 * 100"
                }
              ]
            }
          ]
          autoscale = true
          precision = 0
        }
      },
      {
        id = 10
        layout = {
          x      = 16
          y      = 110
          width  = 18
          height = 9
        }
        definition = {
          title       = "Total no.of requests"
          title_size  = "16"
          title_align = "left"
          time = {
            live_span = "1d"
          }
          type = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 100
                  comparator = ">="
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "sum:aws.applicationelb.request_count_per_target{*}.as_count()"
                  aggregator  = "sum"
                }
              ]
            }
          ]
          autoscale  = true
          text_align = "left"
          precision  = 0
        }
      },
      {
        id = 11
        layout = {
          x      = 0
          y      = 120
          width  = 15
          height = 26
        }
        definition = {
          type             = "note"
          content          = "##\n\n\n\n\n\nSystem"
          background_color = "gray"
          font_size        = "36"
          text_align       = "left"
          show_tick        = true
          tick_pos         = "50%"
          tick_edge        = "right"
        }
      },
      {
        id = 12
        layout = {
          x      = 17
          y      = 1
          width  = 36
          height = 15
        }
        definition = {
          title       = "aomap-ameba-message-bridge - Running Service Count"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ecs.service.running{clustername:aomap-ameba-message-bridge} by {servicename}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 13
        layout = {
          x      = 0
          y      = 1
          width  = 15
          height = 30
        }
        definition = {
          type             = "note"
          content          = "ECS"
          background_color = "vivid_green"
          font_size        = "56"
          text_align       = "right"
          show_tick        = true
          tick_pos         = "50%"
          tick_edge        = "right"
        }
      },
      {
        id = 14
        layout = {
          x      = 54
          y      = 1
          width  = 36
          height = 15
        }
        definition = {
          title       = "aomap-ameba-kafkahq-monitor - Running Service Count"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ecs.service.running{clustername:aomap-ameba-kafkahq-monitor} by {servicename}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 15
        layout = {
          x      = 91
          y      = 1
          width  = 36
          height = 15
        }
        definition = {
          title       = "aomap-ameba-event-consumer - Running service Count"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ecs.service.running{clustername:aomap-ameba-event-consumer}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 16
        layout = {
          x      = 17
          y      = 17
          width  = 36
          height = 14
        }
        definition = {
          title       = "aomap-ameba-schema-registry - Running Service Count"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ecs.service.running{clustername:aomap-ameba-schema-registry}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 17
        layout = {
          x      = 54
          y      = 17
          width  = 36
          height = 14
        }
        definition = {
          title       = "Service CPU Usage by Cluster"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ecs.service.cpuutilization{*} by {clustername}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 18
        layout = {
          x      = 91
          y      = 17
          width  = 35
          height = 14
        }
        definition = {
          title       = "Service Memory Usage"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.ecs.service.memory_utilization{*} by {clustername}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 19
        layout = {
          x      = 0
          y      = 33
          width  = 15
          height = 29
        }
        definition = {
          type             = "note"
          content          = "MSK"
          background_color = "green"
          font_size        = "56"
          text_align       = "right"
          show_tick        = true
          tick_pos         = "50%"
          tick_edge        = "right"
        }
      },
      {
        id = 20
        layout = {
          x      = 17
          y      = 33
          width  = 36
          height = 14
        }
        definition = {
          title       = "CPU Usage by Broker"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.kafka.cpu_system{cluster_name:aomap-ameba-msk-01} by {broker_id}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 21
        layout = {
          x      = 54
          y      = 33
          width  = 36
          height = 14
        }
        definition = {
          title       = "Memory Usage by Broker"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.kafka.memory_used{cluster_name:aomap-ameba-msk-01} by {broker_id,cluster_name}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 22
        layout = {
          x      = 91
          y      = 33
          width  = 35
          height = 14
        }
        definition = {
          title       = "Disk Usage by Broker"
          title_size  = "16"
          title_align = "left"
          type        = "toplist"
          requests = [
            {
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.kafka.root_disk_used{cluster_name:aomap-ameba-msk-01} by {broker_id}"
                  aggregator  = "avg"
                }
              ]
              formulas = [
                {
                  formula = "query1"
                }
              ]
              sort = {
                count = 10
                order_by = [
                  {
                    type  = "formula"
                    index = 0
                    order = "desc"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        id = 23
        layout = {
          x      = 17
          y      = 48
          width  = 36
          height = 14
        }
        definition = {
          title       = "The number of packets recieved by the broker"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.kafka.network_rx_packets{cluster_name:aomap-ameba-msk-01} by {broker_id}.as_count()"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 24
        layout = {
          x      = 54
          y      = 48
          width  = 36
          height = 14
        }
        definition = {
          title       = "Number of packets transmitted by the broker"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.kafka.network_tx_packets{cluster_name:aomap-ameba-msk-01} by {broker_id}.as_count()"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 25
        layout = {
          x      = 91
          y      = 48
          width  = 35
          height = 14
        }
        definition = {
          title       = "Swap memory that is available for the Broker"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.kafka.swap_free{cluster_name:aomap-ameba-msk-01} by {broker_id}"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      },
      {
        id = 26
        layout = {
          x      = 0
          y      = 64
          width  = 15
          height = 24
        }
        definition = {
          type             = "note"
          content          = "ES Domain"
          background_color = "purple"
          font_size        = "36"
          text_align       = "left"
          show_tick        = true
          tick_pos         = "50%"
          tick_edge        = "right"
        }
      },
      {
        id = 27
        layout = {
          x      = 17
          y      = 64
          width  = 17
          height = 12
        }
        definition = {
          title       = "Number of Nodes"
          title_size  = "16"
          title_align = "left"
          type        = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 1
                  comparator = ">="
                },
                {
                  palette    = "white_on_red"
                  value      = 1
                  comparator = "<"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.nodes{domainname:aomap-ameba-logs} by {name}"
                  aggregator  = "avg"
                }
              ]
              formulas = [
                {
                  formula = "query1"
                  limit = {
                    count = 10
                    order = "desc"
                  }
                }
              ]
            }
          ]
          precision = 0
        }
      },
      {
        id = 28
        layout = {
          x      = 35
          y      = 64
          width  = 26
          height = 12
        }
        definition = {
          title       = "Kibana Health Check (1 is Accessible)"
          title_size  = "16"
          title_align = "left"
          type        = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 1
                  comparator = ">="
                },
                {
                  palette    = "white_on_red"
                  value      = 1
                  comparator = "<"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.kibana_healthy_nodes{domainname:aomap-ameba-logs}"
                  aggregator  = "avg"
                }
              ]
            }
          ]
          precision = 0
        }
      },
      {
        id = 29
        layout = {
          x      = 62
          y      = 64
          width  = 27
          height = 12
        }
        definition = {
          title       = "Cluster CPU Usage"
          title_size  = "16"
          title_align = "left"
          type        = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 80
                  comparator = "<"
                },
                {
                  palette    = "white_on_red"
                  value      = 80
                  comparator = ">"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.cpuutilization{domainname:aomap-ameba-logs} by {name}"
                  aggregator  = "avg"
                }
              ]
              formulas = [
                {
                  formula = "query1"
                  limit = {
                    count = 10
                    order = "desc"
                  }
                }
              ]
            }
          ]
          precision = 2
        }
      },
      {
        id = 30
        layout = {
          x      = 90
          y      = 64
          width  = 36
          height = 12
        }
        definition = {
          title       = "Automated Snapshots Failure Status"
          title_size  = "16"
          title_align = "left"
          type        = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 0
                  comparator = "<="
                },
                {
                  palette    = "white_on_red"
                  value      = 0
                  comparator = ">"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.automated_snapshot_failure{domainname:aomap-ameba-logs} by {domainname}"
                  aggregator  = "avg"
                }
              ]
            }
          ]
          precision = 0
        }
      },
      {
        id = 31
        layout = {
          x      = 17
          y      = 77
          width  = 18
          height = 11
        }
        definition = {
          title       = "Cluster Health (1=OK)"
          title_size  = "16"
          title_align = "left"
          type        = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 1
                  comparator = ">="
                },
                {
                  palette    = "white_on_red"
                  value      = 1
                  comparator = "<"
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.master_reachable_from_node{*}"
                  aggregator  = "avg"
                }
              ]
            }
          ]
          precision = 0
        }
      },
      {
        id = 32
        layout = {
          x      = 36
          y      = 77
          width  = 25
          height = 11
        }
        definition = {
          title       = "Free space across all data nodes"
          title_size  = "16"
          title_align = "left"
          type        = "query_value"
          requests = [
            {
              conditional_formats = [
                {
                  palette    = "white_on_green"
                  value      = 50
                  comparator = ">="
                },
                {
                  palette    = "white_on_yellow"
                  value      = 50
                  comparator = "<="
                }
              ]
              response_format = "scalar"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.free_storage_space{domainname:aomap-ameba-logs} by {domainname}"
                  aggregator  = "avg"
                }
              ]
              formulas = [
                {
                  formula = "query1"
                  limit = {
                    count = 10
                    order = "desc"
                  }
                }
              ]
            }
          ]
          autoscale = true
          precision = 2
        }
      },
      {
        id = 33
        layout = {
          x      = 62
          y      = 77
          width  = 43
          height = 11
        }
        definition = {
          title       = "HTTP requests by response code - 200"
          title_size  = "16"
          title_align = "left"
          show_legend = false
          type        = "timeseries"
          requests = [
            {
              response_format = "timeseries"
              queries = [
                {
                  data_source = "metrics"
                  name        = "query1"
                  query       = "avg:aws.es.2xx{domainname:aomap-ameba-logs} by {domainname}.as_count()"
                }
              ]
              style = {
                palette    = "dog_classic"
                line_type  = "solid"
                line_width = "normal"
              }
              display_type = "line"
            }
          ]
          yaxis = {
            include_zero = true
            scale        = "linear"
            label        = ""
            min          = "auto"
            max          = "auto"
          }
        }
      }
    ]
    template_variables = []
    layout_type        = "free"
    notify_list        = []
    pause_auto_refresh = false
    tags = [
      "team:ameba-team"
    ]
  })
}