Closed Fodoj closed 7 years ago
Perhaps the instance doesn't have a IAM role that lets you PutMetricData?
Do you have something like this on your instance's policy document?
{ "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1480026642000", "Effect": "Allow", "Action": [ "cloudwatch:PutMetricData" ], "Resource": [ "*" ] } ] }
The problem was SELinux. This plugin doesn't work with rhel7 epel collectd package:
I ended up throwing away the whole horrible 500+ python lines of code of setup.py and replaced it with 20 lines Chef recipe that installs plugin to /var/lib/collectd and enables the SE Boolean.
@Fodoj would you mind gisting that recipe? :)
I keep getting this unpleasant error:
If I try to curl metadata server I get correct result without any errors.