Skip to content

YAML Configuration

Garot Conklin edited this page Apr 29, 2025 · 1 revision

YAML Configuration Guide

Structure

rules:
  - name: "RuleName"
    description: "Rule description"
    trigger:
      metric: "MetricName"
      namespace: "AWS/Service"
      threshold: value
      duration: "5 minutes"
    actions:
      - type: "action_type"
        steps: []

Example Rules

EC2 High CPU

- name: "HighCPU_Remediation"
  trigger:
    metric: "CPUUtilization"
    namespace: "AWS/EC2"
    threshold: 90
    duration: "5 minutes"
  actions:
    - type: "remediate"
      steps:
        - "aws autoscaling set-desired-capacity"
    - type: "notify"
      channel: "slack"

Configuration Best Practices

  1. Naming Convention

    • Use descriptive names
    • Include service and action type
    • Follow ServiceName_ActionType format
  2. Thresholds

    • Set appropriate buffer zones
    • Consider time windows
    • Include gradual escalation
  3. Actions

    • Start with notifications
    • Graduate to automated actions
    • Include rollback steps

Clone this wiki locally