My question is setting when monitoring AWS metrics with stackdriver. I'm tried thing below but, alert(policy) is not working. How do I send alert(policy) with group settings? I dont want is single monitoring, I do want is group settings.
- I completed stackdriver monitoring setting for aws accounts by role settings. for next, I settinged group settings alert(policy) metrics is below.
- load average > 5
- disk usage > 80%
there target is some ec2 instances, these is group settings.
- I complete settings for these. for next, did test of stress.
- I looked at the metrics. Then the graph exceeded the threshold.
- but not sended alert(policy), and not opened incidents.
below is details.
Alert(Policy) Creation
- go to [Alerting/ Policies/ TARGET POLICY]
- [Add Condition], for next select to [Metric Threshold]
- RESOURCE TYPE is Instance(EC2)
- APPLIES TO is Group
- Select group. This group is Including EC2 Instances.
- CONDITION TRIGGERS IF: Any Member Violates
- IF METRIC is [CPU Load Average(past 1m)
- CONDITION is above
- THRESHOLD is 5 load
- FOR is 1 minutes
- Write by name and Push [Save Policy]
Test of Stress
- ssh to target instances.
- Execute stress test.
- Confim the Load Average above reached 5.
- but not sended alert(policy)
Confirm the Stackdriver
- Confirm the above Load Average reached 5, with alert settings page.
- But not opened Incidents.
I Tried other settings
- For GCP instances, alerts will work correctly. It is both group setting and single setting.
- Alerts will work for AWS instances in single configuration, but not for group settings.
Version info
- stackdriver
- stackdriver-agent version: stackdriver-agent.x86_64 5.5.2-366.amzn1
- aws
- OS: Amazon Linux
- VERSION: 2016.03
- ID_LIKE: rhel fedora
more detail is please comments.