perimcomm

CloudWatch

Oct 31st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. - hosts: <hosts>
  2. became: no
  3. tasks:
  4. - name: Auth Alarms EC2
  5. ec2_metric_alarm:
  6. state: present
  7. region: us-east-1
  8. #####CPU-Alarms
  9. name: "cpu-high"
  10. metric: "CPUUtilization"
  11. namespace: "AWS/EC2"
  12. statistic: Average
  13. comparison: ">="
  14. threshold: 85
  15. period: 300
  16. unit: "Percent"
  17. description: "This will alarm when Auth machines cpu usage is higher than 95%"
  18. alarm_actions: //Inserir lambda referente as maquinas auths
  19. #Disc-Alarms
  20. name: "disk-sizeUse"
  21. metric: "DiskSpaceUtilization"
  22. unit: "Percent"
  23. statistic: "Average"
  24. comparison: ">="
  25. period: 60
  26. threshold: 70
  27. namespace: "AWS/EC2"
  28. #Memory Alarms
  29. name: "Memory-Usage"
  30. metric: "Memory"
  31. unit: "Percent"
  32. statistic: "Average"
  33. comparison: ">="
  34. threshold: 70
  35. period: 60
  36. namespace: "AWS/EC2"
Add Comment
Please, Sign In to add comment