Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: <hosts>
- became: no
- tasks:
- - name: Auth Alarms EC2
- ec2_metric_alarm:
- state: present
- region: us-east-1
- #####CPU-Alarms
- name: "cpu-high"
- metric: "CPUUtilization"
- namespace: "AWS/EC2"
- statistic: Average
- comparison: ">="
- threshold: 85
- period: 300
- unit: "Percent"
- description: "This will alarm when Auth machines cpu usage is higher than 95%"
- alarm_actions: //Inserir lambda referente as maquinas auths
- #Disc-Alarms
- name: "disk-sizeUse"
- metric: "DiskSpaceUtilization"
- unit: "Percent"
- statistic: "Average"
- comparison: ">="
- period: 60
- threshold: 70
- namespace: "AWS/EC2"
- #Memory Alarms
- name: "Memory-Usage"
- metric: "Memory"
- unit: "Percent"
- statistic: "Average"
- comparison: ">="
- threshold: 70
- period: 60
- namespace: "AWS/EC2"
Add Comment
Please, Sign In to add comment