Skip to content
Menu
myCloud myCloud

Personal short notes about Cloud

  • XMPie
  • AWS
    • AWS Topics
    • AWS Architecture
    • AWS CLI
    • AWS Health
    • AWS Policies
    • AWS Cost
  • CHEAT SHEETS
myCloud myCloud

Personal short notes about Cloud

Datadog – EC2 monitoring

By mikado on October 8, 2022October 12, 2022

EC2 CPU utilization on {{name.name}} | {{host.name}}

Queryavg(last_30m):avg:aws.ec2.cpuutilization{host:*} by {name,host} > 90
Message{{#is_alert}} CRITICAL {{/is_alert}}
{{#is_warning}} WARNING {{/is_warning}}
{{#is_recovery}} RECOVERED {{/is_recovery}}

EC2 memory usage on {{name.name}} | {{host.name}}

Queryavg(last_30m):avg:system.mem.pct_usable{datadog:true} by {host,name} < 0.1

EC2 disk space on {{device.name}} in: {{name.name}} | {{host.name}}

Queryavg(last_15m):avg:system.disk.in_use{host:*} by {host,device,name} > 0.9

EC2 Status Check on {{name.name}} in {{region.name}}

Queryavg(last_5m):avg:aws.ec2.status_check_failed{host:*} by {host,name} >= 1

Datadog agent down on {{host.name}}

Query“datadog.agent.up”.over(“datadog:true”).by(“host”).last(2).count_by_status()

w32time service status on {{host.name}} | {{region.name}}

Query“windows_service.state”.over(“windows_service:w32time”).by(“host”,”name”,”region”,”windows_service”).last(3).count_by_status()

w3svc service status on {{host.name}} | {{region.name}}

Query“windows_service.state”.over(“windows_service:w3svc”).by(“host”,”name”,”region”,”windows_service”).last(3).count_by_status()

schedule service status on {{host.name}} | {{region.name}}

Query“windows_service.state”.over(“windows_service:schedule”).by(“host”,”name”,”region”,”windows_service”).last(3).count_by_status()

Route53 health check {{name.name}} failed

Queryavg(last_5m):avg:aws.route53.health_check_status{datadog:true} by {name} < 1

IIS Application Pool up on {{host.name}} | {{region.name}}

Query“iis.app_pool_up”.over(“*”).by(“host”,”name”,”region”,”app_pool”).last(3).count_by_status()

Category: Datadog

Categories

  • AWS (4)
  • AWS Architecture (8)
  • AWS CLI (5)
  • AWS Cost (3)
  • AWS Health (4)
  • AWS Policies (2)
  • AWS Topics (24)
  • CHEAT SHEETS (16)
  • Container (21)
  • Datadog (4)
  • Jenkins (2)
  • Linux (9)
  • Microsoft (7)
  • Python (1)
  • SCRIPTS (9)
  • Terraform (5)
  • XMPie (6)
©2025 myCloud
Click to Copy